summaryrefslogtreecommitdiff
path: root/test/files/pos/bug348plus.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug348plus.scala')
-rwxr-xr-xtest/files/pos/bug348plus.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/files/pos/bug348plus.scala b/test/files/pos/bug348plus.scala
new file mode 100755
index 0000000000..45f49a33fe
--- /dev/null
+++ b/test/files/pos/bug348plus.scala
@@ -0,0 +1,23 @@
+// bug #348
+trait Foo {
+ type bar <: this.Bar;
+ abstract class Bar;
+ case class Baz(r:bar) extends this.Bar;
+ case object NoBar extends this.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);
+}
+