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
Skolems escape with -Xstrict-inference #7990
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7990?orig=1 |
@retronym said: |
@retronym said: |
@retronym said: |
@retronym said: |
closing on the assumption that |
If that's the case then we probably need an issue to rip the |
With
-Xstrict-inference
, per #6680:The inferred type of
blah
below should have something likeforSome {type A >: AnyVal}
at the end of it; instead, it refers to the (now free) type variableA
fromBoxF
.I shouldn't be able to give the ascription that resulted in
res0
.Notwithstanding what seems to be merely a printing issue (the two
A
s in theblah4
definition seem to be different internally, as expected), when I throw out the free variable explicitly I get what I expect.The text was updated successfully, but these errors were encountered: