@@ -1506,9 +1506,7 @@ class Translator with KernelNodes {
15061506
15071507 // Check that type of the receiver is a subtype of
15081508 if (! typeEnvironment.isSubtypeOf (
1509- lambdaDartType,
1510- node.receiver.getStaticType (typeContext),
1511- SubtypeCheckMode .withNullabilities)) {
1509+ lambdaDartType, node.receiver.getStaticType (typeContext))) {
15121510 return null ;
15131511 }
15141512
@@ -1530,9 +1528,7 @@ class Translator with KernelNodes {
15301528 functions.getLambdaFunction (lambda, member, enclosingMemberClosures);
15311529
15321530 if (! typeEnvironment.isSubtypeOf (
1533- lambdaDartType,
1534- node.receiver.getStaticType (typeContext),
1535- SubtypeCheckMode .withNullabilities)) {
1531+ lambdaDartType, node.receiver.getStaticType (typeContext))) {
15361532 return null ;
15371533 }
15381534
@@ -1726,16 +1722,14 @@ class Translator with KernelNodes {
17261722 if (name == 'iterator' && nodeCount <= 20 ) {
17271723 if (typeEnvironment.isSubtypeOf (
17281724 klass.getThisType (coreTypes, Nullability .nonNullable),
1729- coreTypes.iterableRawType (Nullability .nonNullable),
1730- SubtypeCheckMode .ignoringNullabilities)) {
1725+ coreTypes.iterableRawType (Nullability .nonNullable))) {
17311726 return true ;
17321727 }
17331728 }
17341729 if (name == 'current' && nodeCount <= 5 ) {
17351730 if (typeEnvironment.isSubtypeOf (
17361731 klass.getThisType (coreTypes, Nullability .nonNullable),
1737- coreTypes.iteratorRawType (Nullability .nonNullable),
1738- SubtypeCheckMode .ignoringNullabilities)) {
1732+ coreTypes.iteratorRawType (Nullability .nonNullable))) {
17391733 return true ;
17401734 }
17411735 }
0 commit comments