Lookahead was not consuming typed throw's error argument during lookahead for closures. atFunctionTypeArrow did mostly handle it, but only consumed a single token and thus wouldn't match throws(any Error). Handle this in consumeEffectsSpecifiers and then use this for both.
Lookahead was not consuming typed throw's error argument during lookahead for closures.
atFunctionTypeArrow
did mostly handle it, but only consumed a single token and thus wouldn't matchthrows(any Error)
. Handle this inconsumeEffectsSpecifiers
and then use this for both.Fixes #2648. Resolves rdar://127750606.