We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f821732 + be81ff4 commit 9981e81Copy full SHA for 9981e81
tests/run/i17930/Foo_1.scala
@@ -0,0 +1,13 @@
1
+package eu.joaocosta.defaultstest
2
+
3
+object Foo {
4
+ def foo(x: Int, y: Int = 5): Int = x + y
5
+}
6
7
+object Bar {
8
+ export Foo.*
9
10
11
+object App {
12
+ println(Bar.foo(2)) // Works
13
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"
0 commit comments