We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982586e commit 25d0205Copy full SHA for 25d0205
tests/pos/i16119.scala
@@ -14,3 +14,22 @@ class Foo2:
14
inline def baz(): Any = ??? : self.type
15
16
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
30
31
+ inline def baz(): Any =
32
+ val xs: Foo4 { type T = self.T } = ???
33
+ xs
34
35
0 commit comments