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>
46 lines
772 B
Dart
46 lines
772 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 A {
|
|
num field1;
|
|
num field2;
|
|
|
|
A() {}
|
|
A.foo() {}
|
|
A.bar(this.field1) {}
|
|
A.baz(this.field1, this.field2) {}
|
|
}
|
|
|
|
abstract class B {
|
|
num field1;
|
|
num field2;
|
|
|
|
B() {}
|
|
B.foo() {}
|
|
B.bar(this.field1) {}
|
|
B.baz(this.field1, this.field2) {}
|
|
}
|
|
|
|
class C {
|
|
final num? field1;
|
|
final num? field2;
|
|
|
|
C() {}
|
|
C.foo() {}
|
|
C.bar(this.field1) {}
|
|
C.baz(this.field1, this.field2) {}
|
|
}
|
|
|
|
abstract class D {
|
|
final num? field1;
|
|
final num? field2;
|
|
|
|
D() {}
|
|
D.foo() {}
|
|
D.bar(this.field1) {}
|
|
D.baz(this.field1, this.field2) {}
|
|
}
|
|
|
|
main() {}
|