blob: d2f86239dbc92a8e75429a75da7045e5690f2ffc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import language._
object Sample {
trait X
trait Y
// import of the non-implicit should be unused
object Implicits {
def `int to X`(i: Int): X = null
implicit def `int to Y`(i: Int): Y = null
implicit def useless(i: Int): String = null
}
def f(x: X) = ???
def g(y: Y) = ???
}
|