Skip to content

Commit

Permalink
Merge pull request #12746 from tgodzik/i7304
Browse files Browse the repository at this point in the history
Add test for infix operator usage from Scala 2 libraries
  • Loading branch information
bishabosha committed Jun 8, 2021
2 parents 61a6833 + c848aef commit 55762c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i7304.scala
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 55762c6

Please sign in to comment.