| Index: pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
|
| index 31d8d4f332e48903cd6000662d171f6333babee3..d99b0633ed06d6bdf2110c5948f759aaebf95dec 100644
|
| --- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
|
| +++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
|
| @@ -16,6 +16,7 @@ import 'package:kernel/ast.dart'
|
| DartType,
|
| DynamicType,
|
| Field,
|
| + FormalSafety,
|
| FunctionType,
|
| InterfaceType,
|
| Location,
|
| @@ -311,10 +312,9 @@ abstract class TypeInferenceEngineImpl extends TypeInferenceEngine {
|
| for (var procedure in cls.procedures) {
|
| if (procedure.isStatic) continue;
|
| void compute(VariableDeclaration formal) {
|
| - ShadowVariableDeclaration kernelVariableDeclaration = formal;
|
| var pessimisticType = pessimization.substituteType(formal.type);
|
| if (!typeSchemaEnvironment.isSubtypeOf(formal.type, pessimisticType)) {
|
| - kernelVariableDeclaration.isSemiSafe = true;
|
| + formal.formalSafety = FormalSafety.semiSafe;
|
| instrumentation?.record(Uri.parse(cls.fileUri), formal.fileOffset,
|
| 'checkFormal', new InstrumentationValueLiteral('semiSafe'));
|
| instrumentation?.record(Uri.parse(cls.fileUri), formal.fileOffset,
|
|
|