diff options
Diffstat (limited to 'tests/neg/t2660.scala')
-rw-r--r-- | tests/neg/t2660.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/t2660.scala b/tests/neg/t2660.scala index 85e318915..17fe26258 100644 --- a/tests/neg/t2660.scala +++ b/tests/neg/t2660.scala @@ -22,7 +22,7 @@ class A[T](x: T) { object T { def main(args: Array[String]): Unit = { implicit def g2h(g: G): H = new H - new A[Int](new H, 23) + new A[Int](new H, 23) // error // in the context here, either secondary constructor is applicable // to the other, due to the implicit in scope. So the call is ambiguous. } @@ -40,7 +40,7 @@ object X { object T2 { def main(args: Array[String]): Unit = { implicit def g2h(g: G): H = new H - X.f(new H, 23) + X.f(new H, 23) // error } } |