File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,22 @@ object Test {
30
30
type T10 = (Int => Int ) | (=> Int ) // error
31
31
type T11 = (Int => Int ) & (=> Int ) // error
32
32
type T12 = (Int => Int ) with (=> Int ) // error
33
+
34
+ // annotations
35
+ type T13 = _ @ annotation.tailrec // error
36
+ type T14 = Int @ _ // error
37
+ type T15 = (_ | Int ) @ annotation.tailrec // error
38
+ type T16 = (Int | _) @ annotation.tailrec // error
39
+ type T17 = Int @ (_ | annotation.tailrec) // error
40
+ type T18 = Int @ (annotation.tailrec | _) // error
41
+
42
+ type T19 = (_ with Int ) @ annotation.tailrec // error
43
+ type T20 = (Int with _) @ annotation.tailrec // error
44
+ type T21 = Int @ (_ with annotation.tailrec) // error // error
45
+ type T22 = Int @ (annotation.tailrec with _) // error // error
46
+
47
+ type T23 = (_ & Int ) @ annotation.tailrec // error
48
+ type T24 = (Int & _) @ annotation.tailrec // error
49
+ type T25 = Int @ (_ & annotation.tailrec) // error
50
+ type T26 = Int @ (annotation.tailrec & _) // error
33
51
}
You can’t perform that action at this time.
0 commit comments