Skip to content

Commit f904062

Browse files
committed
Fix i499 test. fails due to #546
1 parent 28bb276 commit f904062

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/run/byNameVarargs/i499.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
object Test {
1+
object Test extends dotty.runtime.LegacyApp{
22
def foo(a: => Any*) = ()
33
def bar(a: => Any*) = foo(a : _*)
44
def baz(a: => Seq[Any]) = foo(a : _*)
55
bar(???, ???)
66
baz(Seq(???, ???))
7-
baz(Array(???, ???))
87

9-
def foo1(a => Any, b: => Any*) = ()
8+
def foo1(a: => Any, b: => Any*) = ()
109
foo1(???)
1110
foo1(???, ???, ???)
1211

13-
def assertFails(a => Any) = {
12+
def assertFails(a: => Any) = {
1413
var failed = false
1514
try {
1615
a

0 commit comments

Comments
 (0)