summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/run/t5105.check1
-rw-r--r--test/files/run/t5105.scala14
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t5105.check b/test/files/run/t5105.check
new file mode 100644
index 0000000000..1d4f6efff4
--- /dev/null
+++ b/test/files/run/t5105.check
@@ -0,0 +1 @@
+You buttered your bread. Now sleep in it!
diff --git a/test/files/run/t5105.scala b/test/files/run/t5105.scala
new file mode 100644
index 0000000000..f5a9a3c4da
--- /dev/null
+++ b/test/files/run/t5105.scala
@@ -0,0 +1,14 @@
+object Test {
+ def main(args: Array[String]) {
+ new foo.Bar
+ println("You buttered your bread. Now sleep in it!")
+ }
+}
+
+package foo {
+ trait Foo { def foo() {} }
+ class Bar extends Baz with Foo
+
+ abstract class Baz
+ object Baz extends Foo
+}