diff options
Diffstat (limited to 'test-nsc/files/pos/bug348plus.scala')
-rwxr-xr-x | test-nsc/files/pos/bug348plus.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test-nsc/files/pos/bug348plus.scala b/test-nsc/files/pos/bug348plus.scala new file mode 100755 index 0000000000..30fa1576af --- /dev/null +++ b/test-nsc/files/pos/bug348plus.scala @@ -0,0 +1,24 @@ +// bug #348 + +trait Foo { + type bar <: Bar; + abstract class Bar; + case class Baz(r:bar) extends Bar; + case object NoBar extends Bar; +} +object Test extends Application { + object ConcreteFooBar extends Foo { // if moved to toplevel, it works + type bar = Bar; + } + def foo = { + import ConcreteFooBar._ ; + Baz( NoBar ) + } +} + +// bug #367 + +object Bla { + def foo(): Unit = (return null).equals(null); +} + |