diff options
author | Dmitry Petrashko <dark@d-d.me> | 2014-04-04 20:04:44 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2014-04-04 20:04:44 +0200 |
commit | 839a9fc5ecb2371672f25c2c5f639d0952ad8bbc (patch) | |
tree | 6fb8153f945d8d411be05a35e6ec72594906ed17 /tests/pos | |
parent | 75e30d92d17615c84292c6ebb3df1f15060197db (diff) | |
parent | 0b50b29cb9e8b43fff1d012dd53561b5ac0a437c (diff) | |
download | dotty-839a9fc5ecb2371672f25c2c5f639d0952ad8bbc.tar.gz dotty-839a9fc5ecb2371672f25c2c5f639d0952ad8bbc.tar.bz2 dotty-839a9fc5ecb2371672f25c2c5f639d0952ad8bbc.zip |
Merge pull request #109 from DarkDimius/erasure-bridges
Bridge generation in erasure implemented.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/Bridges.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/Bridges.scala b/tests/pos/Bridges.scala new file mode 100644 index 000000000..a7350d785 --- /dev/null +++ b/tests/pos/Bridges.scala @@ -0,0 +1,11 @@ +abstract class X[T]{ + def go2(x:T)(y:T = x): T = y + def go: T + def go1(x: T) = x +} + +class Y extends X[Int] { + override def go2(x: Int)(z: Int) = 2 + override def go = 0 + override def go1(x: Int) = x +} |