Skip to content

Commit 1228367

Browse files
committed
add test
1 parent 7f5e8a4 commit 1228367

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/neg/opaque.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
object opaquetypes {
2+
23
opaque val x: Int = 1 // error
34

45
opaque class Foo // error
@@ -7,6 +8,8 @@ object opaquetypes {
78

89
opaque type U <: String // error
910

11+
opaque type Fix[F[_]] = F[Fix[F]] // error: cyclic
12+
1013
opaque type O = String
1114

1215
val s: O = "" // error

0 commit comments

Comments
 (0)