diff --git a/pkg/front_end/pubspec.yaml b/pkg/front_end/pubspec.yaml index 6a39baeddee..1a8c57b74dd 100644 --- a/pkg/front_end/pubspec.yaml +++ b/pkg/front_end/pubspec.yaml @@ -6,7 +6,7 @@ name: front_end publish_to: none environment: - sdk: ^3.9.0 + sdk: '^3.12.0' workspace: - testcases diff --git a/pkg/kernel/lib/testing/type_parser_environment.dart b/pkg/kernel/lib/testing/type_parser_environment.dart index 3b7cbb61b54..adfcc4e7893 100644 --- a/pkg/kernel/lib/testing/type_parser_environment.dart +++ b/pkg/kernel/lib/testing/type_parser_environment.dart @@ -373,15 +373,9 @@ class _KernelFromParsedType implements Visitor { TypeParameterType type = new TypeParameterType( declaration, interpretParsedNullability(node.parsedNullability, - ifOmitted: nullability)); - // If the nullability was omitted on the type and can't be computed from - // the bound because it's not yet available, it will be set to null. In - // that case, put it to the list to be updated later, when the bound is - // available. - // ignore: unnecessary_null_comparison - if (type.declaredNullability == null) { - environment.pendingNullabilities.add(type); - } + ifOmitted: nullability, + ), + ); return type; } else if (declaration is StructuralParameter) { if (arguments.isNotEmpty) { @@ -394,15 +388,9 @@ class _KernelFromParsedType implements Visitor { StructuralParameterType type = new StructuralParameterType( declaration, interpretParsedNullability(node.parsedNullability, - ifOmitted: nullability)); - // If the nullability was omitted on the type and can't be computed from - // the bound because it's not yet available, it will be set to null. In - // that case, put it to the list to be updated later, when the bound is - // available. - // ignore: unnecessary_null_comparison - if (type.declaredNullability == null) { - environment.pendingNullabilities.add(type); - } + ifOmitted: nullability, + ), + ); return type; } else if (declaration is Typedef) { return new TypedefType(declaration, diff --git a/pkg/kernel/pubspec.yaml b/pkg/kernel/pubspec.yaml index 8a6d9895cfa..55f76c995f0 100644 --- a/pkg/kernel/pubspec.yaml +++ b/pkg/kernel/pubspec.yaml @@ -6,7 +6,7 @@ name: kernel publish_to: none environment: - sdk: ^3.6.0 + sdk: '^3.12.0' resolution: workspace