aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/imp2.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/imp2.check')
-rw-r--r--tests/untried/neg/imp2.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/imp2.check b/tests/untried/neg/imp2.check
new file mode 100644
index 000000000..999cecf16
--- /dev/null
+++ b/tests/untried/neg/imp2.check
@@ -0,0 +1,7 @@
+imp2.scala:18: error: reference to f is ambiguous;
+it is imported twice in the same scope by
+import b._
+and import a._
+ val x = f
+ ^
+one error found