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.
2 parents 3836f3c + 059da73 commit 8149abcCopy full SHA for 8149abc
tests/neg/i6225.scala
@@ -0,0 +1,23 @@
1
+object O1 {
2
+ type A[X] = X
3
+ opaque type T = A
4
+}
5
+
6
+object O2 {
7
+ opaque type A[X] = X
8
+ object A {
9
10
+ }
11
12
13
+object O3 {
14
+ opaque type R[X] = R[X] // error
15
16
17
+object O4{
18
+ opaque type T[X] = Any
19
20
21
+object O5{
22
+ opaque type T[X] = Nothing
23
tests/pos/i6224.scala
@@ -0,0 +1,6 @@
+object O {
+ opaque type T = Int
+ object T {
0 commit comments