diff options
author | odersky <odersky@gmail.com> | 2015-08-22 17:39:16 +0200 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2015-08-22 17:39:16 +0200 |
commit | de9877f53ef4e0c94968475788dd2c9e120c6e8d (patch) | |
tree | f753793a6a4b32862123892b2c0bed0a6b574b46 /tests/run | |
parent | 54d691e336a7a3e60d40eadab40bee9a48126f69 (diff) | |
parent | d17d3121fd8cbd620bbc70bb46e983b37311ba15 (diff) | |
download | dotty-de9877f53ef4e0c94968475788dd2c9e120c6e8d.tar.gz dotty-de9877f53ef4e0c94968475788dd2c9e120c6e8d.tar.bz2 dotty-de9877f53ef4e0c94968475788dd2c9e120c6e8d.zip |
Merge pull request #764 from dotty-staging/mixin/forwarders
Mixin: class defined abstract members take precedence over interface defined.
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/i764.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/i764.scala b/tests/run/i764.scala new file mode 100644 index 000000000..921bdd23b --- /dev/null +++ b/tests/run/i764.scala @@ -0,0 +1,14 @@ +abstract class A { + def foo: Int +} + +trait B { + def foo = 2 +} + +object Test extends A with B { + + def main(args: Array[String]): Unit = { + this.foo + } +} |