summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-24 21:02:57 +0300
committerEugene Burmako <xeno.by@gmail.com>2014-01-24 23:01:20 +0300
commit32a02d6f7c697870c071b86e6552740bcced7697 (patch)
treef12b408aab72b0d23950ba1386cc4d20ec869c09 /test/files/run
parent8b87327d4a3e8145c5716ec4883c497d86739281 (diff)
downloadscala-32a02d6f7c697870c071b86e6552740bcced7697.tar.gz
scala-32a02d6f7c697870c071b86e6552740bcced7697.tar.bz2
scala-32a02d6f7c697870c071b86e6552740bcced7697.zip
updates the test for by-name value class parameters
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t6411.check16
-rw-r--r--test/files/run/t6411.scala8
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t6411.check b/test/files/run/t6411.check
index 03055b5a8a..9226146195 100644
--- a/test/files/run/t6411.check
+++ b/test/files/run/t6411.check
@@ -38,6 +38,14 @@ meth = method yl_5
as seen by Scala reflection: def yl_5(ys: List[Y[String]]): List[String]
as seen by Java reflection: public scala.collection.immutable.List a$.yl_5(scala.collection.immutable.List)
result = List(5)
+meth = method yni_7
+as seen by Scala reflection: def yni_7(y: => Y[Int]): Int
+as seen by Java reflection: public int a$.yni_7(scala.Function0)
+result = 7
+meth = method yns_8
+as seen by Scala reflection: def yns_8(y: => Y[String]): String
+as seen by Java reflection: public java.lang.String a$.yns_8(scala.Function0)
+result = 8
meth = method zg_1
as seen by Scala reflection: def zg_1[T](z: Z[T]): T
as seen by Java reflection: public java.lang.Object a$.zg_1(Z)
@@ -78,3 +86,11 @@ meth = method zl_5
as seen by Scala reflection: def zl_5(zs: List[Z[String]]): List[String]
as seen by Java reflection: public scala.collection.immutable.List a$.zl_5(scala.collection.immutable.List)
result = List(5)
+meth = method zni_7
+as seen by Scala reflection: def zni_7(z: => Z[Int]): Int
+as seen by Java reflection: public int a$.zni_7(scala.Function0)
+result = 7
+meth = method zns_8
+as seen by Scala reflection: def zns_8(z: => Z[String]): String
+as seen by Java reflection: public java.lang.String a$.zns_8(scala.Function0)
+result = 8
diff --git a/test/files/run/t6411.scala b/test/files/run/t6411.scala
index d80f7f6a1e..3bfeac2890 100644
--- a/test/files/run/t6411.scala
+++ b/test/files/run/t6411.scala
@@ -16,6 +16,8 @@ object a {
def ya_4(ys: Array[Y[String]]) = ys.toList.map(_.i)
def yl_5(ys: List[Y[String]]) = ys.map(_.i)
def yv_6(ys: Y[String]*) = ys.toList.map(_.i)
+ def yni_7(y: => Y[Int]) = y.i
+ def yns_8(y: => Y[String]) = y.i
def zg_1[T](z: Z[T]) = z.i
def zi_2(z: Z[Int]) = z.i
@@ -23,6 +25,8 @@ object a {
def za_4(zs: Array[Z[String]]) = zs.toList.map(_.i)
def zl_5(zs: List[Z[String]]) = zs.map(_.i)
def zv_6(zs: Z[String]*) = zs.toList.map(_.i)
+ def zni_7(z: => Z[Int]) = z.i
+ def zns_8(z: => Z[String]) = z.i
}
object Test extends App {
@@ -56,6 +60,8 @@ object Test extends App {
// FIXME: disabled because of SI-7056
// test("yv_6", new Y(6))
// test("yv_6", new Y("6"))
+ test("yni_7", new Y(7))
+ test("yns_8", new Y("8"))
test("zg_1", new Z(1))
test("zg_1", new Z("1"))
@@ -70,4 +76,6 @@ object Test extends App {
// FIXME: disabled because of SI-7056
// test("zv_6", new Z(6))
// test("zv_6", new Z("6"))
+ test("zni_7", new Z(7))
+ test("zns_8", new Z("8"))
} \ No newline at end of file