diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/t6335.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pos/t6335.scala b/tests/pos/t6335.scala new file mode 100644 index 000000000..eb052db19 --- /dev/null +++ b/tests/pos/t6335.scala @@ -0,0 +1,25 @@ +object E extends Z { + def X = 3 + implicit class X(val i: Int) { + def xx = i + } + + def Y(a: Any) = 0 + object Y + implicit class Y(val i: String) { def yy = i } + + implicit class Z(val i: Boolean) { def zz = i } +} + +trait Z { + def Z = 0 +} + +object Test { + import E._ + 0.xx + + "".yy + + true.zz +} |