Skip to content

Commit 102c778

Browse files
Fix #8143: add regression test
1 parent 5018a12 commit 102c778

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pos/i8143.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class Reflection(val internal: CompilerInterface) { self => // It works if the self is removed
2+
opaque type Flags = internal.Flags
3+
object Flags {
4+
def EmptyFlags: Flags = internal.Flags_EmptyFlags
5+
}
6+
}
7+
8+
trait CompilerInterface {
9+
type Flags
10+
def Flags_EmptyFlags: Flags
11+
}

0 commit comments

Comments
 (0)