aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-06 10:32:56 +0200
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-05-20 13:38:48 +0200
commit093774e181e878308551226f6a0b990bf7de8077 (patch)
tree6723ce0971db89d682d48bfacd0785980c322499 /tests
parent82c4db686d07ae8e91f157f5c8b55a1a76917941 (diff)
downloaddotty-093774e181e878308551226f6a0b990bf7de8077.tar.gz
dotty-093774e181e878308551226f6a0b990bf7de8077.tar.bz2
dotty-093774e181e878308551226f6a0b990bf7de8077.zip
Fix of SI 2133
We now restrict wildcard imports to members that are accessible at the point of import. This is a fix of an open Scala ticket.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/t2133.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/pos/t2133.scala b/tests/pos/t2133.scala
new file mode 100644
index 000000000..02ef43c21
--- /dev/null
+++ b/tests/pos/t2133.scala
@@ -0,0 +1,18 @@
+trait Foo {
+ object bar {
+ private def fn() = 5
+ }
+}
+
+trait Foo2 {
+ object bip {
+ def fn() = 10
+ }
+}
+
+class Bob extends AnyRef with Foo with Foo2 {
+ import bip._
+ import bar._
+
+ def go() = fn()
+}