Skip to content

Commit abfb3f9

Browse files
committed
chore: add regression test for #10343
1 parent 241f261 commit abfb3f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pos/i10343.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//> using options -Ycheck:all
2+
3+
class C {
4+
type A
5+
inline def test: A = ???
6+
}
7+
8+
@main def m = {
9+
val c = C()
10+
val x: c.A = c.test
11+
}

0 commit comments

Comments
 (0)