You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val Parsed.Success(value, successIndex) = parse("a", parseA(_))
assert(value == (), successIndex == 1)
}
.
/home/tim/repos/untitled/src/main/scala/TestFastParse.scala:5:56
Context bounds will map to context parameters.
A using clause is needed to pass explicit arguments to them.
This code can be rewritten automatically under -rewrite -source 3.4-migration.
val Parsed.Success(value, successIndex) = parse("a", parseA(_))
The text was updated successfully, but these errors were encountered:
This can be manually worked around by replacing parse("a", parseA(_)) with parse("a", c => parseA(using c)) since a using keyword now appears to be required.
import fastparse._
object TestFastParse {
def parseA[$: P] = P("a")
val Parsed.Success(value, successIndex) = parse("a", parseA(_))
assert(value == (), successIndex == 1)
}
The text was updated successfully, but these errors were encountered: