You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check invariant about the flags of pattern-bound symbols
The following invariant should be true for pattern-bound symbols,
and *only* for pattern-bound symbols:
(sym.isType && !sym.isClass && sym.isOneOf(Case)) ||
(sym.isTerm && sym.isOneOf(Case, butNot = Enum | Module))
The invariant only holds before patternMatcher.
After patternMatcher, there are no more pattern trees,
thus the invariant does not hold any more.
0 commit comments