mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:21:18 +00:00
Make NNBD and non-NNBD versions of non_abstract_class_inherits_abstract_member_test.dart
This is in preparation for working on external and abstract fields, which will require introducing some NNBD-only tests to this file. Change-Id: I2e1a77634aef0493d5e44edf88373deaa9acb6c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157580 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
a2fdeaaa53
commit
fc7b79e5a9
|
@ -10,12 +10,18 @@ import '../dart/resolution/context_collection_resolution.dart';
|
|||
main() {
|
||||
defineReflectiveSuite(() {
|
||||
defineReflectiveTests(NonAbstractClassInheritsAbstractMemberTest);
|
||||
defineReflectiveTests(
|
||||
NonAbstractClassInheritsAbstractMemberWithNullSafetyTest);
|
||||
});
|
||||
}
|
||||
|
||||
@reflectiveTest
|
||||
class NonAbstractClassInheritsAbstractMemberTest
|
||||
extends PubPackageResolutionTest {
|
||||
extends PubPackageResolutionTest
|
||||
with NonAbstractClassInheritsAbstractMemberTestCases {}
|
||||
|
||||
mixin NonAbstractClassInheritsAbstractMemberTestCases
|
||||
on PubPackageResolutionTest {
|
||||
test_abstractsDontOverrideConcretes_getter() async {
|
||||
await assertNoErrorsInCode(r'''
|
||||
class A {
|
||||
|
@ -606,3 +612,8 @@ class C implements I {
|
|||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@reflectiveTest
|
||||
class NonAbstractClassInheritsAbstractMemberWithNullSafetyTest
|
||||
extends PubPackageResolutionTest
|
||||
with WithNullSafetyMixin, NonAbstractClassInheritsAbstractMemberTestCases {}
|
||||
|
|
Loading…
Reference in a new issue