Open
Description
If we have a message that’s unwisely named not-to-pattern, say, taco
and a field of that type with the same name, optional taco taco = 1
then the generated code is malformed because Javac cannot differentiate between the field and class name.
Solutions for fixing this are awkward. Do we allocate a different field name? Or always fully-qualify the class?