diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/bug3312.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/bug3312.scala b/test/files/pos/bug3312.scala new file mode 100644 index 0000000000..aef965d2e7 --- /dev/null +++ b/test/files/pos/bug3312.scala @@ -0,0 +1,17 @@ +trait Root { + def say: String +} + +trait A extends Root { + override def say: String = "bow" +} + +trait B extends Root { + override def say: String = "hi" +} + +object Foo extends A with B { + override def say: String = foo(super[A].say) + + def foo(p: => String): String = p +} |