diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/si5471.check | 2 | ||||
-rw-r--r-- | test/files/jvm/si5471.scala | 17 | ||||
-rw-r--r-- | test/files/run/t5271_1.check | 1 | ||||
-rw-r--r-- | test/files/run/t5271_1.scala | 1 | ||||
-rw-r--r-- | test/files/run/t5271_2.check | 2 | ||||
-rw-r--r-- | test/files/run/t5271_2.scala | 1 | ||||
-rw-r--r-- | test/files/run/t5271_3.check | 2 | ||||
-rw-r--r-- | test/files/run/t5271_3.scala | 1 |
8 files changed, 27 insertions, 0 deletions
diff --git a/test/files/jvm/si5471.check b/test/files/jvm/si5471.check new file mode 100644 index 0000000000..bb101b641b --- /dev/null +++ b/test/files/jvm/si5471.check @@ -0,0 +1,2 @@ +true +true diff --git a/test/files/jvm/si5471.scala b/test/files/jvm/si5471.scala new file mode 100644 index 0000000000..2c8c4205c5 --- /dev/null +++ b/test/files/jvm/si5471.scala @@ -0,0 +1,17 @@ + +object Test { + + def main(args: Array[String]) { + import scala.math.Numeric + import scala.math.Numeric.Implicits._ + + val b = BigInt(Long.MaxValue) + 1 + + def dbl[N :Numeric](n: N) = n.toDouble + def flt[N :Numeric](n: N) = n.toFloat + + println(dbl(b) == b.toDouble) + println(flt(b) == b.toFloat) + } + +} diff --git a/test/files/run/t5271_1.check b/test/files/run/t5271_1.check index 7a728e5164..5245173228 100644 --- a/test/files/run/t5271_1.check +++ b/test/files/run/t5271_1.check @@ -9,3 +9,4 @@ };
()
}
+()
diff --git a/test/files/run/t5271_1.scala b/test/files/run/t5271_1.scala index 5baa57c290..20cafa6a08 100644 --- a/test/files/run/t5271_1.scala +++ b/test/files/run/t5271_1.scala @@ -7,4 +7,5 @@ object Test extends App { val toolbox = mkToolBox() println(code.tree) + println(code.eval) } diff --git a/test/files/run/t5271_2.check b/test/files/run/t5271_2.check index d8d6edeffc..0765b3a6a4 100644 --- a/test/files/run/t5271_2.check +++ b/test/files/run/t5271_2.check @@ -10,3 +10,5 @@ val c = C.apply(2, 2);
scala.this.Predef.println(c.foo.$times(c.bar))
}
+4
+()
diff --git a/test/files/run/t5271_2.scala b/test/files/run/t5271_2.scala index 9820ebe692..af6491407c 100644 --- a/test/files/run/t5271_2.scala +++ b/test/files/run/t5271_2.scala @@ -9,4 +9,5 @@ object Test extends App { val toolbox = mkToolBox() println(code.tree) + println(code.eval) } diff --git a/test/files/run/t5271_3.check b/test/files/run/t5271_3.check index 1d4f47c5df..2b920a36a8 100644 --- a/test/files/run/t5271_3.check +++ b/test/files/run/t5271_3.check @@ -17,3 +17,5 @@ val c = C.apply(2, 2);
scala.this.Predef.println(c.foo.$times(c.bar).$eq$eq(C.qwe))
}
+true
+()
diff --git a/test/files/run/t5271_3.scala b/test/files/run/t5271_3.scala index 5fd94f4a2b..646b10a8e5 100644 --- a/test/files/run/t5271_3.scala +++ b/test/files/run/t5271_3.scala @@ -10,4 +10,5 @@ object Test extends App { val toolbox = mkToolBox() println(code.tree) + println(code.eval) } |