Closed
Description
This issue was originally filed by [email protected]
The following code behaves strangely in dart2js:
void main() {
var foo = new Foo();
foo.element = 'parrots!';
}
class Foo {
void set element() {
print('setting');
}
}
Presumably there should be a compile-time error objecting to the illegal setter parameters, but I get neither a compile-time error nor a run-time error. The VM gives what appears to be a compile-time error.