In updating to 2.0-M2 from 2.0-M1, I started seeing this error:
[error] YParser.scala:217: value toLowerCase is not a member of org.parboiled2.Rule[shapeless.HNil,shapeless.HNil]
[error] def YamlTrue = rule { ignoreCase("true") ~ ScalarTerminatorGuard ~ push(YBool(value = true)) }
After scratching my head about macros and toggling -Ymacro-debug-lite, I realized that this rule was the problem:
def Character = rule { EscapedChar | NormalChar }
My choice of method name conflicts with the IgnoreCaseString macro-generated reference to Character.toLowerCase(). My wisdom in using the name Character aside, perhaps this should be an absolute reference to java.lang.Character.toLowerCase()?
In updating to 2.0-M2 from 2.0-M1, I started seeing this error:
After scratching my head about macros and toggling
-Ymacro-debug-lite
, I realized that this rule was the problem:My choice of method name conflicts with the
IgnoreCaseString
macro-generated reference toCharacter.toLowerCase()
. My wisdom in using the nameCharacter
aside, perhaps this should be an absolute reference tojava.lang.Character.toLowerCase()
?