diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-26 05:59:48 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-26 05:59:48 +0000 |
commit | 6de5505cd98b8d852b1b63e3f0ec1e48e9deb701 (patch) | |
tree | b508d278c14aae4dde730f3f56f6406dbb0a5469 | |
parent | 22da3636fd531964182c4079e0e17faf2c0f38c8 (diff) | |
download | scala-6de5505cd98b8d852b1b63e3f0ec1e48e9deb701.tar.gz scala-6de5505cd98b8d852b1b63e3f0ec1e48e9deb701.tar.bz2 scala-6de5505cd98b8d852b1b63e3f0ec1e48e9deb701.zip |
Added test for #3312 which it looks like was fi...
Added test for #3312 which it looks like was fixed long ago but not
closed. Closes #3312, no review.
-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 +} |