Skip to content

Commit a500be8

Browse files
committed
Additions to test
1 parent c052d65 commit a500be8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/overloaded.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,13 @@ object overloaded {
4747
val t5: Int = r5
4848
val r6 = combine((x: String, y) => x ++ y.toString)
4949
val t6: String = r6
50+
51+
// test result disambiguation
52+
trait A
53+
trait B
54+
class C extends A with B
55+
def fr(x: A): A = x
56+
def fr(x: B): B = x
57+
val a: A = fr(new C)
58+
val b: B = fr(new C)
5059
}

0 commit comments

Comments
 (0)