From 093774e181e878308551226f6a0b990bf7de8077 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 6 May 2014 10:32:56 +0200 Subject: 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. --- tests/pos/t2133.scala | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/pos/t2133.scala (limited to 'tests') 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() +} -- cgit v1.2.3