aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/implicit-shadow.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/implicit-shadow.check')
-rw-r--r--tests/untried/neg/implicit-shadow.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/implicit-shadow.check b/tests/untried/neg/implicit-shadow.check
new file mode 100644
index 000000000..042fca867
--- /dev/null
+++ b/tests/untried/neg/implicit-shadow.check
@@ -0,0 +1,11 @@
+implicit-shadow.scala:4: <i2s: error> is not a valid implicit value for Int(1) => ?{def isEmpty: ?} because:
+reference to i2s is ambiguous;
+it is imported twice in the same scope by
+import C._
+and import B._
+ 1.isEmpty
+ ^
+implicit-shadow.scala:4: error: value isEmpty is not a member of Int
+ 1.isEmpty
+ ^
+one error found