diff options
author | Martin Odersky <odersky@gmail.com> | 2003-11-26 08:48:02 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-11-26 08:48:02 +0000 |
commit | c8f278f400e9313eecb8a61ea055730ead5fdcb3 (patch) | |
tree | bd2e44a4eaebd5f0cbec3d6713ee662e3f9ed315 /test/pos | |
parent | 4a5e0ea95cfae8b739138f49441a0497d5e373df (diff) | |
download | scala-c8f278f400e9313eecb8a61ea055730ead5fdcb3.tar.gz scala-c8f278f400e9313eecb8a61ea055730ead5fdcb3.tar.bz2 scala-c8f278f400e9313eecb8a61ea055730ead5fdcb3.zip |
*** empty log message ***
Diffstat (limited to 'test/pos')
-rw-r--r-- | test/pos/scoping1.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/pos/scoping1.scala b/test/pos/scoping1.scala index 8bd443fd21..7164b0cd28 100644 --- a/test/pos/scoping1.scala +++ b/test/pos/scoping1.scala @@ -1,8 +1,12 @@ -object This { +object This with Executable { trait A { def foo(): unit; } class C: A { - def bar() = foo(); + def bar() = this.foo(); } + class D extends C with A { + def foo() = () + } + val c: C = new D; } |