aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/erasure.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-27 13:57:57 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-03-29 09:32:55 +0100
commitd26d18926d886468406a70ecf676e899c939de9f (patch)
tree7581396d35ee3113ebb61aca69f0baa7906e56e0 /tests/pos/erasure.scala
parente8748e29279f30167516ef7ca8d24f4e4229687f (diff)
downloaddotty-d26d18926d886468406a70ecf676e899c939de9f.tar.gz
dotty-d26d18926d886468406a70ecf676e899c939de9f.tar.bz2
dotty-d26d18926d886468406a70ecf676e899c939de9f.zip
Fixes to erasure
Various fixes to the tree transformer. In the denotation transformer we now keep self types around because otherwise sourceModule would stop to work. Conflicts: src/dotty/tools/dotc/core/transform/Erasure.scala
Diffstat (limited to 'tests/pos/erasure.scala')
-rw-r--r--tests/pos/erasure.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/erasure.scala b/tests/pos/erasure.scala
new file mode 100644
index 000000000..d794e9186
--- /dev/null
+++ b/tests/pos/erasure.scala
@@ -0,0 +1,15 @@
+object erasure {
+
+ class C(x: Int) {
+
+ def this() = this(0)
+ }
+
+ import java.lang._
+
+ def const[T](x: T, y: T) = x
+
+ val x = 2
+ val y = const(x, 3)
+
+}