Closed jtmcdole closed 9 years ago
Removed Area-Frog label. Added Area-Dart2JS, FromAreaFrog labels.
Another negative language test issue.
Set owner to @peter-ahe-google. Removed FromAreaFrog label. Added Accepted label. Changed the title to: "Duplicate final initializes do not cause a compile error".
Added this to the M1 milestone. Removed Priority-Medium label. Added Priority-High label.
dart2js fails to reject subtest 02:
Class.field(this.field) : field = 2 /// 02: compile-time error ;
cc @peter-ahe-google. Set owner to @johnniwinther. Added Started label.
This bug is not fixed, this is from dart/tests/language/language_dart2js.status:
constructor_duplicate_initializers_test/02: Fail, OK # Negative language test.
cc @johnniwinther. Set owner to @peter-ahe-google. Added Accepted label.
This comment was originally written by @aam
Please, take a look at the following fix https://chromiumcodereview.appspot.com/10834327/
New test, language/ConstructorDuplicateInitializersTest.dart:
class Class { Class(var v) : field = v , field = 2 /// 01: compile-time error ; Class.field(this.field) : field = 2 /// 02: compile-time error ; final field_; }
main() { new Class(42); new Class.field(42); }
Similar to http://code.google.com/p/dart/issues/detail?id=1034