aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2014-04-04 20:04:44 +0200
committerDmitry Petrashko <dark@d-d.me>2014-04-04 20:04:44 +0200
commit839a9fc5ecb2371672f25c2c5f639d0952ad8bbc (patch)
tree6fb8153f945d8d411be05a35e6ec72594906ed17 /tests
parent75e30d92d17615c84292c6ebb3df1f15060197db (diff)
parent0b50b29cb9e8b43fff1d012dd53561b5ac0a437c (diff)
downloaddotty-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')
-rw-r--r--tests/pos/Bridges.scala11
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
+}