Skip to content

Commit 0804fde

Browse files
committed
Exhaustive testing of permutations with annotations
1 parent 35f09c4 commit 0804fde

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/neg/i4373.scala

+18
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)