Skip to content

Commit 36fd83b

Browse files
committed
Added test case for varargs bridges
Currently we cannot run this test automatically because the testing framework does not know about .java files. It was run manually and verified that ElimRepeated does was it is supposed to do (create a varargs bridge).
1 parent f2deb53 commit 36fd83b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package test;
2+
public class A {
3+
4+
int foo(int... x) {
5+
return x.length;
6+
}
7+
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package test
2+
class B extends A {
3+
override def foo(x: Int*): Int = x.length + 1
4+
}
5+
object B extends App {
6+
println(new B().foo(1, 2, 3))
7+
}

0 commit comments

Comments
 (0)