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
I know. But considering record types are probably about to get some different syntax (dart-lang/language#2469) it feels like a waste of time to change this.
Part of #49713.
According to the spec https://github.com/dart-lang/language/blob/master/accepted/future-releases/records/records-feature-specification.md#ambiguity-with-on-clauses
try .. on .. on (a, b) {}
should be parsed astry
with 2on
clauses.However, front-end incorrectly parses it as
try .. on
and a local function.This causes
co19/LanguageFeatures/Records/on_clauses_A01_t01
test failure withRuntimeError
.Kernel AST of this test:
@johnniwinther
The text was updated successfully, but these errors were encountered: