summaryrefslogtreecommitdiff
path: root/test/files/pos/scoping1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/scoping1.scala')
-rw-r--r--test/files/pos/scoping1.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/scoping1.scala b/test/files/pos/scoping1.scala
new file mode 100644
index 0000000000..23daf024fe
--- /dev/null
+++ b/test/files/pos/scoping1.scala
@@ -0,0 +1,12 @@
+object This extends Application {
+ trait A {
+ def foo(): unit;
+ }
+ class C: A {
+ def bar() = this.foo();
+ }
+ class D extends C with A {
+ def foo() = ()
+ }
+ val c: C = new D;
+}