Skip to content

Commit dc144e4

Browse files
authored
Merge pull request #5022 from dotty-staging/fix-#2973
Requested tests for #2973 fix
2 parents 37eacd9 + 65f6d66 commit dc144e4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/pos/annotations/MyClass.scala

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ class MyClass {
22
@MyAnnotation(Name="Blah", foBaskaLi = Array(1,2,3))
33
def method = ???
44
}
5+
6+
class MyClass2 extends AnyRef @MyAnnotation(Name="Foo", foBaskaLi = Array(1,2,3))
7+
8+
class MyClass3 extends AnyRef @MyAnnotation(Name="Foo", foBaskaLi = Array(1,2,3)) {
9+
@MyAnnotation(Name="Blah", foBaskaLi = Array(1,2,3))
10+
def method = ???
11+
}

tests/pos/annotations2.scala

+10
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ class A3 {
2929
@CAnn[Int](classOf[Int]) val b3 = null
3030
@CAnn[Int]((1, 2)) val b4 = null
3131
}
32+
33+
class B1 extends AnyRef @BAnn((1, 2, 3))
34+
class B2 extends AnyRef @BAnn((1, 2))
35+
class B3 extends AnyRef @BAnn[Int]((1, 2, 3))
36+
class B4 extends AnyRef @BAnn[Int]((1, 2))
37+
38+
class C1 extends AnyRef @CAnn((1, 2))
39+
class C2 extends AnyRef @CAnn(classOf[Int])
40+
class C3 extends AnyRef @CAnn[Int]((1, 2))
41+
class C4 extends AnyRef @CAnn[Int](classOf[Int])

0 commit comments

Comments
 (0)