Files
sdk/pkg/front_end/testcases/duplicated_field_initializer.dart
T
Peter von der Ahé ac3e4b320f Handle field formal initializers of duplicated fields
Fixes https://github.com/dart-lang/sdk/issues/34912

Change-Id: Icc85f8d5c989c6d9b0e3798c1469c63922a7e346
Reviewed-on: https://dart-review.googlesource.com/c/81413
Commit-Queue: Peter von der Ahé <ahe@google.com>
Reviewed-by: Daniel Hillerström <hillerstrom@google.com>
2018-10-29 11:17:39 +00:00

14 lines
285 B
Dart

// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
int a;
int a;
A(this.a);
}
void main() {
A(1);
}