Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUsing this.type, an expression can compile if broken into assignments and not if given inline. #2435
Comments
This comment has been minimized.
This comment has been minimized.
Imported From: https://issues.scala-lang.org/browse/SI-2435?orig=1
|
This comment has been minimized.
This comment has been minimized.
Rafael de F. Ferreira (rafaeldff) said: |
This comment has been minimized.
This comment has been minimized.
@adriaanm said: found : Bug.FConstant[_2.type(in value a)] where type _2.type(in value a) <: Bug.FConstant[_1.type] with Singleton
required: Bug.FConstant[_2.type(in value a)] forSome { type _2.type(in value a) <: Bug.FConstant[_1.type] with Singleton; val _1: Bug.FConstant[Bug.FNil.type] }
val a = FNil.chain("a").chain("a").chain("a")
^ seems like some existential type got stripped or something.. I'll take a look ASAP. |
This comment has been minimized.
This comment has been minimized.
@retronym said: |
scabug
closed this
May 11, 2012
This comment has been minimized.
This comment has been minimized.
@retronym said: |
scabug
added this to the 2.10.0-M3 milestone
Apr 7, 2017
scabug
assigned
adriaanm
Apr 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scabug commentedOct 3, 2009
This is the narrowest test case I could arrange. If necessary, I can provide a larger code sample where the bug actually harms clarity:
This code is the same as the attached file.