The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
BSD 3-Clause "New" or "Revised" License
10.23k
stars
1.57k
forks
source link
Extension getter/setter prevents error from being reported for missing setter/getter on function type #57002
Open
stereotype441 opened 15 hours ago
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: