diff options
Diffstat (limited to 'tests/untried/neg/t3160ambiguous.check')
-rw-r--r-- | tests/untried/neg/t3160ambiguous.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t3160ambiguous.check b/tests/untried/neg/t3160ambiguous.check new file mode 100644 index 000000000..73a0c6d5d --- /dev/null +++ b/tests/untried/neg/t3160ambiguous.check @@ -0,0 +1,7 @@ +t3160ambiguous.scala:8: error: reference to List is ambiguous; +it is imported twice in the same scope by +import scala.collection.immutable._ +and import Bippy._ + def f(x: List[Any]): String = ??? // ambiguous, because Bippy.List is accessible + ^ +one error found |