Open ireactsam opened 4 years ago
When a field is a reserved word, e.g. type, the generator will use in the pattern match the backticked type, but that has an other meaning in Scala pattern matching deconstruction. So in stead of generating
type
def pack: ((String, String, ...)) => EventLd = { case ((`type`, name, ...)) => EventLd.apply(`type`, name, ...) }
it should better generate
def pack: ((String, String, ...)) => EventLd = { case ((type_, name, ...)) => EventLd.apply(type_, name, ...) }
When a field is a reserved word, e.g. type, the generator will use in the pattern match the backticked
type
, but that has an other meaning in Scala pattern matching deconstruction. So in stead of generatingit should better generate