Skip to content

Commit de5e854

Browse files
committed
Add test
1 parent ee7e02e commit de5e854

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/i2234.scala

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
object Test {
2+
type Dummy[A] = A
3+
4+
def a(d: Dummy[String]) = ()
5+
def a(d: Dummy[Int]) = ()
6+
7+
implicit def dummy[A]: Dummy[A] = null.asInstanceOf[A]
8+
def m(x: List[String])(implicit d: Dummy[String]) = "string"
9+
def m(x: List[Int])(implicit d: Dummy[Int]) = "int"
10+
11+
m(List(1, 2, 3))
12+
m(List("a"))
13+
}

0 commit comments

Comments
 (0)