Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalasig not recursing into package type for prefix #462

Open
wiwa opened this issue Jul 25, 2019 · 1 comment
Open

Scalasig not recursing into package type for prefix #462

wiwa opened this issue Jul 25, 2019 · 1 comment
Labels

Comments

@wiwa
Copy link
Contributor

wiwa commented Jul 25, 2019

Rsc misses out on including the package type as a prefix.

package foo

object O {
  class D
}

class C extends O.D
       tag: CLASSINFOtpe
       sym: foo.#C#
       parents {
         tag: TYPEREFtpe
         pre {
-          tag: SINGLEtpe
-          pre {
-            tag: THIStpe
-            sym: foo.#
-          }
-          sym: foo.#O.
+          tag: THIStpe
+          sym: foo.#O.#
         }
         sym: foo.#O.#D#
       }
     }
   }
@wiwa wiwa added the Scalasig label Jul 25, 2019
@wiwa
Copy link
Contributor Author

wiwa commented Sep 12, 2019

Intriguingly, naively recursing into the prefixes for emitting causes return type information to be wrong:

   info {
     tag: METHODtpe
     ret {
       tag: TYPEREFtpe
       pre {
-        tag: THIStpe
-        sym: foo.#O.#
+        tag: SINGLEtpe
+        pre {
+          tag: THIStpe
+          sym: foo.#
+        }
+        sym: foo.#O.
       }
       sym: foo.#O.#D#
     }
   }
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant