diff --git a/tests/run/i17930/Foo_1.scala b/tests/run/i17930/Foo_1.scala new file mode 100644 index 000000000000..0ee4fa711f58 --- /dev/null +++ b/tests/run/i17930/Foo_1.scala @@ -0,0 +1,13 @@ +package eu.joaocosta.defaultstest + +object Foo { + def foo(x: Int, y: Int = 5): Int = x + y +} + +object Bar { + export Foo.* +} + +object App { + println(Bar.foo(2)) // Works +} diff --git a/tests/run/i17930/app_2.scala b/tests/run/i17930/app_2.scala new file mode 100644 index 000000000000..64ba6bff18c5 --- /dev/null +++ b/tests/run/i17930/app_2.scala @@ -0,0 +1,5 @@ +import eu.joaocosta.defaultstest._ + +@main def Test = + println(Foo.foo(2)) // Works + println(Bar.foo(2)) // Fails with "missing argument for parameter y of method foo in object Bar: (x: Int, y: Int): Int"