Menu

#20 Qualify embedded operator_specification

open
4
2012-08-29
2011-01-17
Tom Harwood
No

Pattern matches with an embedded operator_specification [e.g., Bar in x = Foo(Bar(expr baz)) ] generate pattern matchers with an unqualified reference to Bar in a context where the Java compiler expects to see a qualified name. This causes problems if the opcode type is an enum.

Workaround is to import the enum values:

import static mypackage.AstEnum.*;

Discussion


Log in to post a comment.

MongoDB Logo MongoDB