Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Typechecking extractors is not idempotent #5465
Pattern matching that involves extractors cannot be typechecked twice. The first typecheck distorts its structure, introducing UnApply node that wraps a synthetic SELECTOR_DUMMY ident that doesn't have a definition. If one performs resetAllAttrs, the resulting tree can no longer be typechecked.
It solves Eugene Y.'s reported problem with extractors in macros, but does not yet fix run/idempotency-extractors.scala (with the toolbox compiler).