[dart2js] Fix bug with constant ordering and nnbd.
Change-Id: I8fd1a0b50f793dc3dec4b3a9a1fd127fb6ebb288 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138908 Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Joshua Litt <joshualitt@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
73347e0cad
commit
43dafefa15
@@ -245,17 +245,17 @@ class _DartTypeOrdering extends DartTypeVisitor<int, DartType> {
|
||||
|
||||
@override
|
||||
int visitLegacyType(covariant LegacyType type, covariant LegacyType other) =>
|
||||
visit(type.baseType, other.baseType);
|
||||
compare(type.baseType, other.baseType);
|
||||
|
||||
@override
|
||||
int visitNullableType(
|
||||
covariant NullableType type, covariant NullableType other) =>
|
||||
visit(type.baseType, other.baseType);
|
||||
compare(type.baseType, other.baseType);
|
||||
|
||||
@override
|
||||
int visitFutureOrType(
|
||||
covariant FutureOrType type, covariant FutureOrType other) =>
|
||||
visit(type.typeArgument, other.typeArgument);
|
||||
compare(type.typeArgument, other.typeArgument);
|
||||
|
||||
@override
|
||||
int visitNeverType(covariant NeverType type, covariant NeverType other) {
|
||||
|
||||
Reference in New Issue
Block a user