eafa9ae4b6
Fixes https://github.com/dart-lang/sdk/issues/33214 Change-Id: I7991b537204f160b2991abf9995685e4cae69f88 Reviewed-on: https://dart-review.googlesource.com/61682 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
19 lines
399 B
Dart
19 lines
399 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 A {
|
|
const A(int a);
|
|
}
|
|
|
|
class B {
|
|
final a; // //# 01: compile-time error
|
|
const B(dynamic v) //
|
|
: a = A(v) //# 01: continued
|
|
;
|
|
}
|
|
|
|
void main() {
|
|
const B("");
|
|
}
|