diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/f-bounded-case-class.scala | 1 | ||||
-rw-r--r-- | tests/run/t10170.check | 1 | ||||
-rw-r--r-- | tests/run/t10170.scala | 7 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/f-bounded-case-class.scala b/tests/pos/f-bounded-case-class.scala new file mode 100644 index 000000000..82b8758b2 --- /dev/null +++ b/tests/pos/f-bounded-case-class.scala @@ -0,0 +1 @@ +case class Test[X <: List[Y], Y <: List[X]](x: X, y: Y) diff --git a/tests/run/t10170.check b/tests/run/t10170.check new file mode 100644 index 000000000..29d6383b5 --- /dev/null +++ b/tests/run/t10170.check @@ -0,0 +1 @@ +100 diff --git a/tests/run/t10170.scala b/tests/run/t10170.scala new file mode 100644 index 000000000..683bad371 --- /dev/null +++ b/tests/run/t10170.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]) = println(f) + + def f = { + val a = 100; ({ val a = 0; (c: Int) => c })(a) + } +} |