diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-27 13:57:57 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-03-29 09:32:55 +0100 |
commit | d26d18926d886468406a70ecf676e899c939de9f (patch) | |
tree | 7581396d35ee3113ebb61aca69f0baa7906e56e0 /tests/pos/erasure.scala | |
parent | e8748e29279f30167516ef7ca8d24f4e4229687f (diff) | |
download | dotty-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.scala | 15 |
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) + +} |