Skip to content

Commit 98103a2

Browse files
Merge pull request #8336 from dotty-staging/i8143
Fix #8143: add regression test
2 parents 5018a12 + 102c778 commit 98103a2

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)