diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/bug700.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug700.scala b/test/files/pos/bug700.scala new file mode 100644 index 0000000000..7477bb54f6 --- /dev/null +++ b/test/files/pos/bug700.scala @@ -0,0 +1,10 @@ +trait Foo { + def foobar: Unit; +} + +trait Bar extends Foo { + def foobar: unit = super.foobar +} + +// the following definition breaks the compiler +abstract class Foobar extends Bar |