Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created June 30, 2026 05:09
Show Gist options
  • Select an option

  • Save xuwei-k/cf6c570c70597aa6bffb787c9855c809 to your computer and use it in GitHub Desktop.

Select an option

Save xuwei-k/cf6c570c70597aa6bffb787c9855c809 to your computer and use it in GitHub Desktop.
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:210:31
[error] 210 | def targetRule = rule((2 to 4).times("x"))
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:220:31
[error] 220 | def targetRule = rule((2 to 4).times("x") ~ EOI)
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:229:31
[error] 229 | def targetRule = rule((2 to max).times("x") ~ EOI)
[error] | ^^^^^^^^
[error] |Invalid base expression for `.times(...)`: scala.Int.to(2)($anon.this.max)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:237:31
[error] 237 | def targetRule = rule((2 to 4).times("x").separatedBy('|') ~ EOI)
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:250:31
[error] 250 | def targetRule = rule((1 to 3).times(capture("x")) ~ EOI)
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(1)(3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment