diff options
Diffstat (limited to 'test/files/run/t4827.scala')
-rw-r--r-- | test/files/run/t4827.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t4827.scala b/test/files/run/t4827.scala new file mode 100644 index 0000000000..7270cf169d --- /dev/null +++ b/test/files/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 +} |