diff --git a/tests/pos/i7304.scala b/tests/pos/i7304.scala new file mode 100644 index 000000000000..e8ee873a9a5a --- /dev/null +++ b/tests/pos/i7304.scala @@ -0,0 +1,9 @@ +@main def test = + val myregex_r = "\\s+".r + val text = "adggfgf dfg" + myregex_r findFirstMatchIn text + text takeRight 5 + val func = (a: Int) => a + 1 + List(1,2, 3) map func + text stripPrefix "adgg" +