diff options
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) + +} |