From 762375cb41c23fc912dd9c9e1cc273b706a65631 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 18 Jul 2016 10:11:04 +0200 Subject: Make run tests for #1381. --- tests/pos/overloaded.scala | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'tests/pos') diff --git a/tests/pos/overloaded.scala b/tests/pos/overloaded.scala index 0ccc553a8..6a8e72714 100644 --- a/tests/pos/overloaded.scala +++ b/tests/pos/overloaded.scala @@ -47,40 +47,4 @@ object overloaded { val t5: Int = r5 val r6 = combine((x: String, y) => x ++ y.toString) val t6: String = r6 - - // test result disambiguation - trait A - trait B - class C extends A with B - def fr(x: A): A = x - def fr(x: B): B = x - val a: A = fr(new C) - val b: B = fr(new C) -} - -// from #1381 - -object Foo { - class Bar[T] - implicit def const[T](x: T): Bar[T] = ??? - - def bar[T](e: T): Any = ??? - def bar[T](e: Bar[T]): Any = ??? - - val b: Bar[Int] = ??? - bar(b) -} - -object Test2 { - trait A; trait B - class C1 { - def f(x: A): Unit = println("A") - } - class C2 extends C1 { - def f(x: B): Unit = println("B") - } - object Test extends C2 with App { - implicit def a2b(x: A): B = new B {} - f(new A {}) - } } -- cgit v1.2.3