Extension getter/setter prevents error from being reported for missing setter/getter on function type #57002
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
The analyzer accepts the following code, but the CFE rejects it:
The CFE is correct in rejecting the code; there is no
.foo=
setter defined for the typevoid Function()
.A similar thing happens with the roles of the getter and setter reversed. Again, the analyzer accepts the code, but the CFE rejects it:
Again, the CFE is correct in rejecting the code.
The text was updated successfully, but these errors were encountered: