diff options
Diffstat (limited to 'tests/untried/pos/michel2.scala')
-rw-r--r-- | tests/untried/pos/michel2.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/untried/pos/michel2.scala b/tests/untried/pos/michel2.scala new file mode 100644 index 000000000..914c1b27a --- /dev/null +++ b/tests/untried/pos/michel2.scala @@ -0,0 +1,16 @@ +object Test { + + trait A extends AnyRef { + def f : Int = 1 + } + + class B extends AnyRef with A { + override def f : Int = super[A].f + } + + def main(args: Array[String]) = + Console.println(new B().f); +} + + + |