Skip to content

Commit d17d312

Browse files
committed
Test that forwarders are correctly created.
1 parent ee5639a commit d17d312

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/run/i764.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
abstract class A {
2+
def foo: Int
3+
}
4+
5+
trait B {
6+
def foo = 2
7+
}
8+
9+
object Test extends A with B {
10+
11+
def main(args: Array[String]): Unit = {
12+
this.foo
13+
}
14+
}

0 commit comments

Comments
 (0)