aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t6335.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t6335.scala')
-rw-r--r--tests/untried/pos/t6335.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/untried/pos/t6335.scala b/tests/untried/pos/t6335.scala
new file mode 100644
index 000000000..50e34092d
--- /dev/null
+++ b/tests/untried/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
+}