@@ -17,6 +17,7 @@ import 'package:kernel/type_environment.dart';
17
17
import 'package:kernel/src/legacy_erasure.dart' ;
18
18
import 'package:kernel/src/nnbd_top_merge.dart' ;
19
19
import 'package:kernel/src/norm.dart' ;
20
+ import 'package:kernel/src/standard_bounds.dart' ;
20
21
import 'package:kernel/src/types.dart' show Types;
21
22
22
23
import '../../testing/id_testing_utils.dart' show typeToText;
@@ -67,7 +68,7 @@ import '../source/source_library_builder.dart' show SourceLibraryBuilder;
67
68
68
69
import '../source/source_loader.dart' show SourceLoader;
69
70
70
- import '../type_inference/standard_bounds.dart' show StandardBounds ;
71
+ import '../type_inference/standard_bounds.dart' show TypeSchemaStandardBounds ;
71
72
72
73
import '../type_inference/type_constraint_gatherer.dart'
73
74
show TypeConstraintGatherer;
@@ -512,7 +513,8 @@ class ClassHierarchyBuilder implements ClassHierarchyBase {
512
513
return asSupertypeOf (type, superclass)? .typeArguments;
513
514
}
514
515
515
- InterfaceType getKernelLegacyLeastUpperBound (
516
+ @override
517
+ InterfaceType getLegacyLeastUpperBound (
516
518
InterfaceType type1, InterfaceType type2, Library clientLibrary) {
517
519
if (type1 == type2) return type1;
518
520
@@ -2529,7 +2531,7 @@ class BuilderMixinInferrer extends MixinInferrer {
2529
2531
}
2530
2532
2531
2533
class TypeBuilderConstraintGatherer extends TypeConstraintGatherer
2532
- with StandardBounds {
2534
+ with StandardBounds , TypeSchemaStandardBounds {
2533
2535
final ClassHierarchyBuilder hierarchy;
2534
2536
2535
2537
TypeBuilderConstraintGatherer (this .hierarchy,
@@ -2587,13 +2589,6 @@ class TypeBuilderConstraintGatherer extends TypeConstraintGatherer
2587
2589
bool areMutualSubtypes (DartType s, DartType t, SubtypeCheckMode mode) {
2588
2590
return isSubtypeOf (s, t, mode) && isSubtypeOf (t, s, mode);
2589
2591
}
2590
-
2591
- @override
2592
- InterfaceType getLegacyLeastUpperBound (
2593
- InterfaceType type1, InterfaceType type2, Library clientLibrary) {
2594
- return hierarchy.getKernelLegacyLeastUpperBound (
2595
- type1, type2, clientLibrary);
2596
- }
2597
2592
}
2598
2593
2599
2594
class DelayedOverrideCheck {
0 commit comments