| Index: lib/compiler/implementation/js_backend/backend.dart
|
| diff --git a/lib/compiler/implementation/js_backend/backend.dart b/lib/compiler/implementation/js_backend/backend.dart
|
| index b5772286e187d8cca43c5a40c6ee60d831599e3b..da7e00d1d2889c8f298c50acb1d6f7d6ce65d363 100644
|
| --- a/lib/compiler/implementation/js_backend/backend.dart
|
| +++ b/lib/compiler/implementation/js_backend/backend.dart
|
| @@ -146,7 +146,8 @@ class JavaScriptBackend extends Backend {
|
| // If there are field setters but there is only constructor then the type
|
| // of the field is determined by the assignments in the constructor
|
| // body.
|
| - if (classElement.constructors.length == 1) {
|
| + var constructors = classElement.constructors;
|
| + if (constructors.head !== null && constructors.tail === null) {
|
| return fieldConstructorSetters[classElement][field];
|
| } else {
|
| return HType.UNKNOWN;
|
|
|