Skip to content

Commit a7a94b2

Browse files
committed
Fix #3557: Add regression test
The test now compiles with errors, which is what we would expect.
1 parent b199bf4 commit a7a94b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/neg/i3557.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
class C1 {
3+
@annotation.varargs
4+
def f(values: String*) = ()
5+
}
6+
class C2 {
7+
@scala.annotation.varargs
8+
def f(values: String*) = ()
9+
def g: String => Int = s => hashCode
10+
class C3 {
11+
@f.varargs // error
12+
def f(values: String) = ()
13+
}
14+
}

0 commit comments

Comments
 (0)