aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6335.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6335.check')
-rw-r--r--tests/untried/neg/t6335.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t6335.check b/tests/untried/neg/t6335.check
new file mode 100644
index 000000000..1727a05eb
--- /dev/null
+++ b/tests/untried/neg/t6335.check
@@ -0,0 +1,9 @@
+t6335.scala:6: error: method Z is defined twice
+ conflicting symbols both originated in file 't6335.scala'
+ implicit class Z[A](val i: A) { def zz = i }
+ ^
+t6335.scala:3: error: method X is defined twice
+ conflicting symbols both originated in file 't6335.scala'
+ implicit class X(val x: Int) { def xx = x }
+ ^
+two errors found