Skip to content

Commit 12ff291

Browse files
authored
Merge pull request #3725 from dotty-staging/fix-#3557
Fix #3557: Add regression test
2 parents b199bf4 + a7a94b2 commit 12ff291

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)