-
Notifications
You must be signed in to change notification settings - Fork 21
Singleton types not inferred in all places they should be even after r25861 #5103
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5103?orig=1 |
@adriaanm said: |
@retronym said: https://github.com/retronym/scala/compare/ticket/5103 /cc [~folone] |
@milessabin said: |
@milessabin said: |
@retronym said: I got stuck and couldn't figure out how to take the step forward without breaking existing code. From the commit comment:
test/partest --update-check
|
@milessabin said: |
@SethTisue said: |
@milessabin said: |
@SethTisue said: |
@milessabin said: |
@adriaanm said: |
With Scala trunk, following r25861 and with -Yexperimental specified.
In the REPL transcript below, the compiler infers
T
as the non-singleton typeString
, and then rejects it as not conforming to the explicitly provided bound<: Singleton
.The text was updated successfully, but these errors were encountered: