We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02cffa4 commit 37120dfCopy full SHA for 37120df
tests/pos/i2234.scala
@@ -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