aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i764.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-08-21 14:18:24 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-08-21 14:19:52 +0200
commitd17d3121fd8cbd620bbc70bb46e983b37311ba15 (patch)
treeca751c428cfa700a1e6279ab1404a6daa8e67967 /tests/run/i764.scala
parentee5639a8d90538c162f41cbb6d88007462311863 (diff)
downloaddotty-d17d3121fd8cbd620bbc70bb46e983b37311ba15.tar.gz
dotty-d17d3121fd8cbd620bbc70bb46e983b37311ba15.tar.bz2
dotty-d17d3121fd8cbd620bbc70bb46e983b37311ba15.zip
Test that forwarders are correctly created.
Diffstat (limited to 'tests/run/i764.scala')
-rw-r--r--tests/run/i764.scala14
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
+ }
+}