Files
sdk/pkg/_fe_analyzer_shared/test/inheritance/data/issue40541.dart
T
Johnni Winther a59faa2636 [cfe] Remove nnbd annotation from id-tests
Change-Id: Ib63b80e19027389cec41adf705829b5d4201c0d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366669
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2024-05-24 10:44:54 +00:00

37 lines
806 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:A<T>,Object*/
class A<T> {
/*member: A.test:void Function()*/
void test() {
print(T);
}
}
/*class: B:A<Object?>,B,Object*/
class B extends A<Object?> {
/*member: B.test:void Function()*/
}
/*class: C:A<dynamic>,C,Object*/
class C extends A<dynamic> {
/*member: C.test:void Function()*/
}
/*class: D1:A<Object?>,B,C,D1,Object*/
class D1 extends B implements C {
/*member: D1.test:void Function()*/
}
/*class: D2:A<Object?>,B,C,D2,Object*/
class D2 extends C implements B {
/*member: D2.test:void Function()*/
}
void main() {
D1().test();
D2().test();
}