Skip to content

Commit 25d0205

Browse files
committed
More test cases
1 parent 982586e commit 25d0205

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/pos/i16119.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,22 @@ class Foo2:
1414
inline def baz(): Any = ??? : self.type
1515

1616
bar.baz()
17+
18+
class Foo3:
19+
20+
type T
21+
object bar:
22+
inline def baz(): Any = ??? : List[T]
23+
24+
bar.baz()
25+
26+
class Foo4:
27+
self =>
28+
29+
type T
30+
object bar:
31+
inline def baz(): Any =
32+
val xs: Foo4 { type T = self.T } = ???
33+
xs
34+
35+
bar.baz()

0 commit comments

Comments
 (0)