aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t4827.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t4827.scala')
-rw-r--r--tests/run/t4827.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/t4827.scala b/tests/run/t4827.scala
new file mode 100644
index 000000000..7270cf169
--- /dev/null
+++ b/tests/run/t4827.scala
@@ -0,0 +1,15 @@
+object Test {
+ def main(args: Array[String]): Unit = Foo.foo()
+}
+
+trait CommonTrait {
+ def foo(): String = null
+}
+
+class Foo
+
+object Foo {
+ def goo() = new Foo() with CommonTrait
+
+ def foo(): String = null
+}