-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inferred type refers to a local TermRef #2239
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
Labels
Comments
What's the status of this? It seems to be blocking json4s for #2182? Or is that no longer relevant to said issue? |
liufengyun
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 11, 2017
allanrenucci
pushed a commit
that referenced
this issue
Sep 12, 2017
Note this issue is fixed by #3061 automatically, another merit of the native apply refactoring. |
liufengyun
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 21, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code compiles fine with Scalac, but fails in Dotty. If the commented version of
~++
is used, everything is fine.The cause is that
~++
gets an "ill" type that refers to the local variableb
(see below at bottom). The check is not handled byTyper#escapingRefs
. I tried to modifyTypeOps#simplify
to simplifyTypeRef(TermRef(NoPrefix,b),scala$collection$TraversableOnce$$A)
to justParamRef(B)
, but didn't succeed.The expanded version of
~++
looks like follows:Note: this test case is a minimized version from the library json4s.
The text was updated successfully, but these errors were encountered: