Constructor like syntax is parsed as method if the name is wrong #31001
Labels
front-end-fasta
legacy-area-front-end
Legacy: Use area-dart-model instead.
model-error-recovery
Error recovery in analyzer/CFE.
P3
A lower priority bug or feature request
There is inconsistency between Analyzer parser and Fasta.
Analyzer reports an error and treats
B() : super()
asA() : super()
because there is:
after parameters.Fasta says that this is a method, and it should not have constructor initializers.
I think Analyzer's behavior is a bit better because we lose less nodes when we recover this way.
The text was updated successfully, but these errors were encountered: