Skip to content

Commit 7c13eee

Browse files
committed
Re-instantiate accidentally dropped comment
1 parent 116a48b commit 7c13eee

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

tests/semanticdb/expect/i5854.expect.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package i5854
22

33
class B/*<-i5854::B#*/ {
4+
// Known issue: Can't lookup the symbol of `b.A`
5+
// we have to register the symbol of `b { type A }` to the refinementSymtab first
6+
// then resolve, or assign same semanticdb symbol for both
7+
// fake symbol for b.A, and real symbol of A in b
48
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#*/
59
val b/*<-i5854::B#b.*/: { type A/*<-local0*/ >: Any/*->scala::Any#*/ <: Nothing/*->scala::Nothing#*/ } = loop/*->i5854::B#loop().*/() // error
610
def loop/*<-i5854::B#loop().*/(): Nothing/*->scala::Nothing#*/ = loop/*->i5854::B#loop().*/()

tests/semanticdb/expect/i5854.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package i5854
22

33
class B {
4+
// Known issue: Can't lookup the symbol of `b.A`
5+
// we have to register the symbol of `b { type A }` to the refinementSymtab first
6+
// then resolve, or assign same semanticdb symbol for both
7+
// fake symbol for b.A, and real symbol of A in b
48
val a: String = (((1: Any): b.A): Nothing): String
59
val b: { type A >: Any <: Nothing } = loop() // error
610
def loop(): Nothing = loop()

tests/semanticdb/metac.expect

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3945,20 +3945,20 @@ local0 => type A >: Any <: Nothing
39453945
Occurrences:
39463946
[0:8..0:13): i5854 <- i5854/
39473947
[2:6..2:7): B <- i5854/B#
3948-
[3:6..3:7): a <- i5854/B#a.
3949-
[3:9..3:15): String -> scala/Predef.String#
3950-
[3:24..3:27): Any -> scala/Any#
3951-
[3:30..3:31): b -> i5854/B#b.
3952-
[3:36..3:43): Nothing -> scala/Nothing#
3953-
[3:46..3:52): String -> scala/Predef.String#
3954-
[4:6..4:7): b <- i5854/B#b.
3955-
[4:16..4:17): A <- local0
3956-
[4:21..4:24): Any -> scala/Any#
3957-
[4:28..4:35): Nothing -> scala/Nothing#
3958-
[4:40..4:44): loop -> i5854/B#loop().
3959-
[5:6..5:10): loop <- i5854/B#loop().
3960-
[5:14..5:21): Nothing -> scala/Nothing#
3961-
[5:24..5:28): loop -> i5854/B#loop().
3948+
[7:6..7:7): a <- i5854/B#a.
3949+
[7:9..7:15): String -> scala/Predef.String#
3950+
[7:24..7:27): Any -> scala/Any#
3951+
[7:30..7:31): b -> i5854/B#b.
3952+
[7:36..7:43): Nothing -> scala/Nothing#
3953+
[7:46..7:52): String -> scala/Predef.String#
3954+
[8:6..8:7): b <- i5854/B#b.
3955+
[8:16..8:17): A <- local0
3956+
[8:21..8:24): Any -> scala/Any#
3957+
[8:28..8:35): Nothing -> scala/Nothing#
3958+
[8:40..8:44): loop -> i5854/B#loop().
3959+
[9:6..9:10): loop <- i5854/B#loop().
3960+
[9:14..9:21): Nothing -> scala/Nothing#
3961+
[9:24..9:28): loop -> i5854/B#loop().
39623962

39633963
expect/i9727.scala
39643964
------------------

0 commit comments

Comments
 (0)