Files
sdk/tests/language_2/duplicate_field_with_initializer_test.dart
T
Aske Simon Christensen 911672e204 Avoid crash on duplicated field with initializer
Fixes https://github.com/dart-lang/sdk/issues/31191

Change-Id: I14995dfff04f4ea08014ab20716cc208012b3c82
Reviewed-on: https://dart-review.googlesource.com/66568
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2018-07-27 11:02:05 +00:00

11 lines
309 B
Dart

// Copyright (c) 2018, 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 Repeated {
var a, b = 'Something';
var b; //# 01: compile-time error
}
main() {}