blob: f1eb5d4169a2f1a68401de5ef427c904e3f0923d (
plain) (
tree)
|
|
object Pimper {
implicit def pimp(i: Int) = new {
def test: String = i.toString
}
}
trait A
trait B {
self: A =>
def test {
import Pimper.pimp
println(5.test)
}
}
object Test extends A with B {
def main(args: Array[String]) {
test
}
}
|