diff options
Diffstat (limited to 'test/files/run/t6411.scala')
-rw-r--r-- | test/files/run/t6411.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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 |