Files
sdk/pkg/front_end/testcases/nnbd/abstract_fields.dart
T
Johnni Winther 92f4eb58c8 [cfe] Support abstract fields
Only positive implementation, no error states are checked yet.

Change-Id: Iad79da1dd7e8be9229ee9d47c5301d39ebc3debc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154003
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-16 10:13:23 +00:00

22 lines
541 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.
abstract class A {
abstract int instanceField; // ok
abstract final int finalInstanceField; // ok
abstract covariant num covariantInstanceField; // ok
}
mixin B {
abstract int instanceField; // ok
abstract final int finalInstanceField; // ok
abstract covariant num covariantInstanceField; // ok
}
main() {}