diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-07-18 10:11:04 +0200 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-07-18 10:13:41 +0200 |
commit | 762375cb41c23fc912dd9c9e1cc273b706a65631 (patch) | |
tree | 91ed132327cfa6d2869397ab208068cbd37571a5 /tests/pos | |
parent | 91f067143c9564a052058fa02c73ae6cde3020e6 (diff) | |
download | dotty-762375cb41c23fc912dd9c9e1cc273b706a65631.tar.gz dotty-762375cb41c23fc912dd9c9e1cc273b706a65631.tar.bz2 dotty-762375cb41c23fc912dd9c9e1cc273b706a65631.zip |
Make run tests for #1381.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/overloaded.scala | 36 |
1 files changed, 0 insertions, 36 deletions
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 {}) - } } |