File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,22 @@ object Test {
3030 type T10 = (Int => Int ) | (=> Int ) // error
3131 type T11 = (Int => Int ) & (=> Int ) // error
3232 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
3351}
You can’t perform that action at this time.
0 commit comments