summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/names-defaults.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala
index 162c0bc43e..91f72e3e3c 100644
--- a/test/files/run/names-defaults.scala
+++ b/test/files/run/names-defaults.scala
@@ -282,10 +282,11 @@ class B1 extends A1 {
}
trait N {
- def foo[T >: String](x: Int = -1, y: T = "jupee")(z: String): String
+ def foo[T >: String](x: Int = -1, y: T = "jupee")(z: String): Object
}
abstract class M extends N {
+ // also tests #2116, specialize return type when overriding.
def foo[T >: String](x: Int, y: T)(z: String = "1"): String
def bar(n: Int, m: Double = 1.239): Double
}