dev_compiler
dev_compiler copied to clipboard
No error about duplicate initializers
class Foo {
var x;
Foo([this.x]) : this.x = 1;
}
In Dart, this prevents the code from running, but silently ignored by ddc.
hmmm. Does dartanalyzer find this? We should be displaying all of those errors. I wonder if that reporting got busted somehow. What commands did you use to run DDC?
Ah, dartanalyzer
doesn't see this either! I just ran dartdevc -o out test.dart
.
Ah, nice find! Sounds like an analyzer bug ... or maybe a bug that other Dart impls display an error. Not sure, would have to double check spec