diff options
Diffstat (limited to 'tests/pos/scoping1.scala')
-rw-r--r-- | tests/pos/scoping1.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/scoping1.scala b/tests/pos/scoping1.scala new file mode 100644 index 000000000..83ad1357a --- /dev/null +++ b/tests/pos/scoping1.scala @@ -0,0 +1,12 @@ +object This extends App { + trait A { + def foo(): Unit + } + abstract class C { self: A => + def bar() = this.foo() + } + class D extends C with A { + def foo() = () + } + val c: C = new D +} |