734da2ca2c
Closes #42967, #42844, #40951. Bug: https://github.com/dart-lang/sdk/issues/42967 Bug: https://github.com/dart-lang/sdk/issues/42844 Bug: https://github.com/dart-lang/sdk/issues/40951 Change-Id: Iffa76b8bb507927b8ced07712f710dfbca58659c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/163940 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
18 lines
356 B
Dart
18 lines
356 B
Dart
// Copyright (c) 2020, 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 C {
|
|
final dynamic n; // Error.
|
|
|
|
factory C(dynamic n) = D;
|
|
}
|
|
|
|
class D implements C {
|
|
final dynamic n;
|
|
|
|
D(this.n);
|
|
}
|
|
|
|
main() {}
|