Skip to content

Commit 55762c6

Browse files
authored
Merge pull request #12746 from tgodzik/i7304
Add test for infix operator usage from Scala 2 libraries
2 parents 61a6833 + c848aef commit 55762c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i7304.scala

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@main def test =
2+
val myregex_r = "\\s+".r
3+
val text = "adggfgf dfg"
4+
myregex_r findFirstMatchIn text
5+
text takeRight 5
6+
val func = (a: Int) => a + 1
7+
List(1,2, 3) map func
8+
text stripPrefix "adgg"
9+

0 commit comments

Comments
 (0)