From e63feffe063987df54cb9a5916003eb400c0b49d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 17 Nov 2014 17:08:26 +0100 Subject: Moved pending tests that work into pos and neg. One test (t2613) required lifting a hard recursion limit in findMember (used for debug only, will be removed in the future). The same test also requires -Yno-deep-subtypes to be reset, so it's in pos_special instead of pos. --- tests/pos/t2945.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/pos/t2945.scala (limited to 'tests/pos/t2945.scala') diff --git a/tests/pos/t2945.scala b/tests/pos/t2945.scala new file mode 100644 index 000000000..54f0a7724 --- /dev/null +++ b/tests/pos/t2945.scala @@ -0,0 +1,12 @@ +object Foo { + def test(s: String) = { + (s: Seq[Char]) match { + case Seq('f', 'o', 'o', ' ', rest1: _*) => + rest1 + case Seq('b', 'a', 'r', ' ', ' ', rest2: _*) => + rest2 + case _ => + s + } + } +} -- cgit v1.2.3