-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-instantiate accidentally dropped comment
- Loading branch information
Showing
3 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package i5854 | ||
|
||
class B/*<-i5854::B#*/ { | ||
val a/*<-i5854::B#a.*/: String/*->scala::Predef.String#*/ = (((1: Any/*->scala::Any#*/): b/*->i5854::B#b.*/.A): Nothing/*->scala::Nothing#*/): String/*->scala::Predef.String#*/ | ||
// Known issue: Can't lookup the symbol of `b.A` | ||
// we have to register the symbol of `b { type A }` to the refinementSymtab first | ||
// then resolve, or assign same semanticdb symbol for both | ||
// fake symbol for b.A, and real symbol of A in b val a: String = (((1: Any): b.A): Nothing): String | ||
val b/*<-i5854::B#b.*/: { type A/*<-local0*/ >: Any/*->scala::Any#*/ <: Nothing/*->scala::Nothing#*/ } = loop/*->i5854::B#loop().*/() // error | ||
def loop/*<-i5854::B#loop().*/(): Nothing/*->scala::Nothing#*/ = loop/*->i5854::B#loop().*/() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package i5854 | ||
|
||
class B { | ||
val a: String = (((1: Any): b.A): Nothing): String | ||
// Known issue: Can't lookup the symbol of `b.A` | ||
// we have to register the symbol of `b { type A }` to the refinementSymtab first | ||
// then resolve, or assign same semanticdb symbol for both | ||
// fake symbol for b.A, and real symbol of A in b val a: String = (((1: Any): b.A): Nothing): String | ||
val b: { type A >: Any <: Nothing } = loop() // error | ||
def loop(): Nothing = loop() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters