diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/implicits.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/implicits.scala b/test/files/pos/implicits.scala index aeb6591507..485d24101e 100644 --- a/test/files/pos/implicits.scala +++ b/test/files/pos/implicits.scala @@ -1,3 +1,17 @@ +// #1435 +object t1435 { + implicit def a(s:String):String = error("") + implicit def a(i:Int):String = error("") + implicit def b(i:Int):String = error("") +} + +class C1435 { + val v:String = { + import t1435.a + 2 + } +} + // #1579 object Test1579 { class Column |