[model] Remove more nullability-related assignability error messages

This is a preparation for removing the subtype checking procedure that
ignores the nullability in the input types.

Change-Id: I3c1db55abde0433e9059d949f1c98aaeb61e210c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/428980
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
Chloe Stefantsova
2025-05-19 00:18:57 -07:00
committed by Commit Queue
parent 4a63257e4c
commit 617d0a8e96
133 changed files with 1236 additions and 2473 deletions
@@ -210,166 +210,6 @@ Message _withArgumentsArgumentTypeNotAssignable(
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateArgumentTypeNotAssignableNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"ArgumentTypeNotAssignableNullability",
problemMessageTemplate:
r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type' is nullable and '#type2' isn't.""",
withArguments: _withArgumentsArgumentTypeNotAssignableNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeArgumentTypeNotAssignableNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"ArgumentTypeNotAssignableNullability",
analyzerCodes: <String>["ARGUMENT_TYPE_NOT_ASSIGNABLE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsArgumentTypeNotAssignableNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeArgumentTypeNotAssignableNullability,
problemMessage:
"""The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type)>
templateArgumentTypeNotAssignableNullabilityNull =
const Template<Message Function(DartType _type)>(
"ArgumentTypeNotAssignableNullabilityNull",
problemMessageTemplate:
r"""The value 'null' can't be assigned to the parameter type '#type' because '#type' is not nullable.""",
withArguments: _withArgumentsArgumentTypeNotAssignableNullabilityNull,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type)>
codeArgumentTypeNotAssignableNullabilityNull =
const Code<Message Function(DartType _type)>(
"ArgumentTypeNotAssignableNullabilityNull",
analyzerCodes: <String>["ARGUMENT_TYPE_NOT_ASSIGNABLE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsArgumentTypeNotAssignableNullabilityNull(DartType _type) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
String type = typeParts.join();
return new Message(
codeArgumentTypeNotAssignableNullabilityNull,
problemMessage:
"""The value 'null' can't be assigned to the parameter type '${type}' because '${type}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateArgumentTypeNotAssignableNullabilityNullType =
const Template<Message Function(DartType _type, DartType _type2)>(
"ArgumentTypeNotAssignableNullabilityNullType",
problemMessageTemplate:
r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type2' is not nullable.""",
withArguments: _withArgumentsArgumentTypeNotAssignableNullabilityNullType,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeArgumentTypeNotAssignableNullabilityNullType =
const Code<Message Function(DartType _type, DartType _type2)>(
"ArgumentTypeNotAssignableNullabilityNullType",
analyzerCodes: <String>["ARGUMENT_TYPE_NOT_ASSIGNABLE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsArgumentTypeNotAssignableNullabilityNullType(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeArgumentTypeNotAssignableNullabilityNullType,
problemMessage:
"""The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type2}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateArgumentTypeNotAssignablePartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ArgumentTypeNotAssignablePartNullability",
problemMessageTemplate:
r"""The argument type '#type' can't be assigned to the parameter type '#type2' because '#type3' is nullable and '#type4' isn't.""",
withArguments: _withArgumentsArgumentTypeNotAssignablePartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeArgumentTypeNotAssignablePartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ArgumentTypeNotAssignablePartNullability",
analyzerCodes: <String>["ARGUMENT_TYPE_NOT_ASSIGNABLE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsArgumentTypeNotAssignablePartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeArgumentTypeNotAssignablePartNullability,
problemMessage:
"""The argument type '${type}' can't be assigned to the parameter type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(Constant _constant)>
templateConstEvalCaseImplementsEqual =
@@ -1489,98 +1329,6 @@ Message _withArgumentsForInLoopElementTypeNotAssignable(
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateForInLoopElementTypeNotAssignableNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"ForInLoopElementTypeNotAssignableNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""",
correctionMessageTemplate: r"""Try changing the type of the variable.""",
withArguments: _withArgumentsForInLoopElementTypeNotAssignableNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeForInLoopElementTypeNotAssignableNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"ForInLoopElementTypeNotAssignableNullability",
analyzerCodes: <String>["FOR_IN_OF_INVALID_ELEMENT_TYPE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsForInLoopElementTypeNotAssignableNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeForInLoopElementTypeNotAssignableNullability,
problemMessage:
"""A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
correctionMessage: """Try changing the type of the variable.""",
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateForInLoopElementTypeNotAssignablePartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ForInLoopElementTypeNotAssignablePartNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""",
correctionMessageTemplate: r"""Try changing the type of the variable.""",
withArguments: _withArgumentsForInLoopElementTypeNotAssignablePartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeForInLoopElementTypeNotAssignablePartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ForInLoopElementTypeNotAssignablePartNullability",
analyzerCodes: <String>["FOR_IN_OF_INVALID_ELEMENT_TYPE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsForInLoopElementTypeNotAssignablePartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeForInLoopElementTypeNotAssignablePartNullability,
problemMessage:
"""A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
correctionMessage: """Try changing the type of the variable.""",
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateForInLoopTypeNotIterable =
@@ -1619,94 +1367,6 @@ Message _withArgumentsForInLoopTypeNotIterable(
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateForInLoopTypeNotIterableNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"ForInLoopTypeNotIterableNullability",
problemMessageTemplate:
r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type' is nullable and '#type2' isn't.""",
withArguments: _withArgumentsForInLoopTypeNotIterableNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeForInLoopTypeNotIterableNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"ForInLoopTypeNotIterableNullability",
analyzerCodes: <String>["FOR_IN_OF_INVALID_TYPE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsForInLoopTypeNotIterableNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeForInLoopTypeNotIterableNullability,
problemMessage:
"""The type '${type}' used in the 'for' loop must implement '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateForInLoopTypeNotIterablePartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ForInLoopTypeNotIterablePartNullability",
problemMessageTemplate:
r"""The type '#type' used in the 'for' loop must implement '#type2' because '#type3' is nullable and '#type4' isn't.""",
withArguments: _withArgumentsForInLoopTypeNotIterablePartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeForInLoopTypeNotIterablePartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"ForInLoopTypeNotIterablePartNullability",
analyzerCodes: <String>["FOR_IN_OF_INVALID_TYPE"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsForInLoopTypeNotIterablePartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeForInLoopTypeNotIterablePartNullability,
problemMessage:
"""The type '${type}' used in the 'for' loop must implement '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateGenericFunctionTypeAsTypeArgumentThroughTypedef =
@@ -2463,166 +2123,6 @@ Message _withArgumentsInvalidAssignmentError(DartType _type, DartType _type2) {
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidAssignmentErrorNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidAssignmentErrorNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't.""",
withArguments: _withArgumentsInvalidAssignmentErrorNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidAssignmentErrorNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidAssignmentErrorNullability",
analyzerCodes: <String>["INVALID_ASSIGNMENT"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidAssignmentErrorNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidAssignmentErrorNullability,
problemMessage:
"""A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type)>
templateInvalidAssignmentErrorNullabilityNull =
const Template<Message Function(DartType _type)>(
"InvalidAssignmentErrorNullabilityNull",
problemMessageTemplate:
r"""The value 'null' can't be assigned to a variable of type '#type' because '#type' is not nullable.""",
withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNull,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type)>
codeInvalidAssignmentErrorNullabilityNull =
const Code<Message Function(DartType _type)>(
"InvalidAssignmentErrorNullabilityNull",
analyzerCodes: <String>["INVALID_ASSIGNMENT"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidAssignmentErrorNullabilityNull(DartType _type) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
String type = typeParts.join();
return new Message(
codeInvalidAssignmentErrorNullabilityNull,
problemMessage:
"""The value 'null' can't be assigned to a variable of type '${type}' because '${type}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidAssignmentErrorNullabilityNullType =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidAssignmentErrorNullabilityNullType",
problemMessageTemplate:
r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type2' is not nullable.""",
withArguments: _withArgumentsInvalidAssignmentErrorNullabilityNullType,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidAssignmentErrorNullabilityNullType =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidAssignmentErrorNullabilityNullType",
analyzerCodes: <String>["INVALID_ASSIGNMENT"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidAssignmentErrorNullabilityNullType(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidAssignmentErrorNullabilityNullType,
problemMessage:
"""A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type2}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateInvalidAssignmentErrorPartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidAssignmentErrorPartNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't.""",
withArguments: _withArgumentsInvalidAssignmentErrorPartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeInvalidAssignmentErrorPartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidAssignmentErrorPartNullability",
analyzerCodes: <String>["INVALID_ASSIGNMENT"],
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidAssignmentErrorPartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeInvalidAssignmentErrorPartNullability,
problemMessage:
"""A value of type '${type}' can't be assigned to a variable of type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidCastFunctionExpr =
@@ -3465,317 +2965,6 @@ Message _withArgumentsInvalidReturnAsync(DartType _type, DartType _type2) {
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidReturnAsyncNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnAsyncNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type' is nullable and '#type2' isn't.""",
withArguments: _withArgumentsInvalidReturnAsyncNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidReturnAsyncNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnAsyncNullability",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnAsyncNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidReturnAsyncNullability,
problemMessage:
"""A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type)>
templateInvalidReturnAsyncNullabilityNull =
const Template<Message Function(DartType _type)>(
"InvalidReturnAsyncNullabilityNull",
problemMessageTemplate:
r"""The value 'null' can't be returned from an async function with return type '#type' because '#type' is not nullable.""",
withArguments: _withArgumentsInvalidReturnAsyncNullabilityNull,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type)>
codeInvalidReturnAsyncNullabilityNull =
const Code<Message Function(DartType _type)>(
"InvalidReturnAsyncNullabilityNull",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnAsyncNullabilityNull(DartType _type) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
String type = typeParts.join();
return new Message(
codeInvalidReturnAsyncNullabilityNull,
problemMessage:
"""The value 'null' can't be returned from an async function with return type '${type}' because '${type}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidReturnAsyncNullabilityNullType =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnAsyncNullabilityNullType",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type2' is not nullable.""",
withArguments: _withArgumentsInvalidReturnAsyncNullabilityNullType,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidReturnAsyncNullabilityNullType =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnAsyncNullabilityNullType",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnAsyncNullabilityNullType(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidReturnAsyncNullabilityNullType,
problemMessage:
"""A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type2}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateInvalidReturnAsyncPartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidReturnAsyncPartNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from an async function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""",
withArguments: _withArgumentsInvalidReturnAsyncPartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeInvalidReturnAsyncPartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidReturnAsyncPartNullability",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnAsyncPartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeInvalidReturnAsyncPartNullability,
problemMessage:
"""A value of type '${type}' can't be returned from an async function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidReturnNullability =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type' is nullable and '#type2' isn't.""",
withArguments: _withArgumentsInvalidReturnNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidReturnNullability =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnNullability",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnNullability(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidReturnNullability,
problemMessage:
"""A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type}' is nullable and '${type2}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type)>
templateInvalidReturnNullabilityNull =
const Template<Message Function(DartType _type)>(
"InvalidReturnNullabilityNull",
problemMessageTemplate:
r"""The value 'null' can't be returned from a function with return type '#type' because '#type' is not nullable.""",
withArguments: _withArgumentsInvalidReturnNullabilityNull,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type)> codeInvalidReturnNullabilityNull =
const Code<Message Function(DartType _type)>(
"InvalidReturnNullabilityNull",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnNullabilityNull(DartType _type) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
String type = typeParts.join();
return new Message(
codeInvalidReturnNullabilityNull,
problemMessage:
"""The value 'null' can't be returned from a function with return type '${type}' because '${type}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type, DartType _type2)>
templateInvalidReturnNullabilityNullType =
const Template<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnNullabilityNullType",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type2' is not nullable.""",
withArguments: _withArgumentsInvalidReturnNullabilityNullType,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Message Function(DartType _type, DartType _type2)>
codeInvalidReturnNullabilityNullType =
const Code<Message Function(DartType _type, DartType _type2)>(
"InvalidReturnNullabilityNullType",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnNullabilityNullType(
DartType _type, DartType _type2) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
String type = typeParts.join();
String type2 = type2Parts.join();
return new Message(
codeInvalidReturnNullabilityNullType,
problemMessage:
"""A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type2}' is not nullable.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
templateInvalidReturnPartNullability = const Template<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidReturnPartNullability",
problemMessageTemplate:
r"""A value of type '#type' can't be returned from a function with return type '#type2' because '#type3' is nullable and '#type4' isn't.""",
withArguments: _withArgumentsInvalidReturnPartNullability,
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>
codeInvalidReturnPartNullability = const Code<
Message Function(
DartType _type, DartType _type2, DartType _type3, DartType _type4)>(
"InvalidReturnPartNullability",
);
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
Message _withArgumentsInvalidReturnPartNullability(
DartType _type, DartType _type2, DartType _type3, DartType _type4) {
TypeLabeler labeler = new TypeLabeler();
List<Object> typeParts = labeler.labelType(_type);
List<Object> type2Parts = labeler.labelType(_type2);
List<Object> type3Parts = labeler.labelType(_type3);
List<Object> type4Parts = labeler.labelType(_type4);
String type = typeParts.join();
String type2 = type2Parts.join();
String type3 = type3Parts.join();
String type4 = type4Parts.join();
return new Message(
codeInvalidReturnPartNullability,
problemMessage:
"""A value of type '${type}' can't be returned from a function with return type '${type2}' because '${type3}' is nullable and '${type4}' isn't.""" +
labeler.originMessages,
arguments: {
'type': _type,
'type2': _type2,
'type3': _type3,
'type4': _type4,
},
);
}
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Template<Message Function(DartType _type)>
templateJsInteropExportInvalidInteropTypeArgument =
@@ -219,12 +219,7 @@ class _SyncClosureContext implements ClosureContext {
_returnContext, expressionType, statement.expression!,
fileOffset: statement.expression!.fileOffset,
isVoidAllowed: true,
errorTemplate: templateInvalidReturn,
nullabilityErrorTemplate: templateInvalidReturnNullability,
nullabilityPartErrorTemplate: templateInvalidReturnPartNullability,
nullabilityNullErrorTemplate: templateInvalidReturnNullabilityNull,
nullabilityNullTypeErrorTemplate:
templateInvalidReturnNullabilityNullType);
errorTemplate: templateInvalidReturn);
statement.expression = expression..parent = statement;
}
}
@@ -491,14 +486,7 @@ class _AsyncClosureContext implements ClosureContext {
inferrer.computeGreatestClosure2(_returnContext),
declaredContextType: returnType,
isVoidAllowed: false,
errorTemplate: templateInvalidReturnAsync,
nullabilityErrorTemplate: templateInvalidReturnAsyncNullability,
nullabilityPartErrorTemplate:
templateInvalidReturnAsyncPartNullability,
nullabilityNullErrorTemplate:
templateInvalidReturnAsyncNullabilityNull,
nullabilityNullTypeErrorTemplate:
templateInvalidReturnAsyncNullabilityNullType)
errorTemplate: templateInvalidReturnAsync)
..parent = statement;
}
}
@@ -60,10 +60,6 @@ class LocalForInVariable implements ForInVariable {
Expression rhs = visitor.ensureAssignable(
variableType, rhsType, variableSet.value,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
variableSet.value = rhs..parent = variableSet;
@@ -141,10 +137,6 @@ class PropertyForInVariable implements ForInVariable {
Expression rhs = visitor.ensureAssignable(
visitor.computeGreatestClosure(_writeType!), rhsType, _rhs!,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
propertySet.value = rhs..parent = propertySet;
@@ -179,10 +171,6 @@ class AbstractSuperPropertyForInVariable implements ForInVariable {
rhsType,
superPropertySet.value,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
superPropertySet.value = rhs..parent = superPropertySet;
ExpressionInferenceResult result = visitor.inferExpression(
@@ -218,10 +206,6 @@ class SuperPropertyForInVariable implements ForInVariable {
rhsType,
superPropertySet.value,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
superPropertySet.value = rhs..parent = superPropertySet;
ExpressionInferenceResult result = visitor.inferExpression(
@@ -247,10 +231,6 @@ class StaticForInVariable implements ForInVariable {
Expression rhs = visitor.ensureAssignable(
setterType, rhsType, staticSet.value,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
staticSet.value = rhs..parent = staticSet;
@@ -297,10 +277,6 @@ class ExtensionSetForInVariable implements ForInVariable {
Expression rhs = visitor.ensureAssignable(
setterType!, rhsType, extensionSet.value,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability,
isVoidAllowed: true);
extensionSet.value = rhs..parent = extensionSet;
@@ -1624,11 +1624,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase
variable.type, inferredType, variableGet,
isVoidAllowed: true,
fileOffset: parent.fileOffset,
errorTemplate: templateForInLoopElementTypeNotAssignable,
nullabilityErrorTemplate:
templateForInLoopElementTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateForInLoopElementTypeNotAssignablePartNullability);
errorTemplate: templateForInLoopElementTypeNotAssignable);
Statement? expressionEffect;
if (!identical(implicitDowncast, variableGet)) {
variable.initializer = implicitDowncast..parent = variable;
@@ -1668,10 +1664,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase
wrapType(const DynamicType(), iterableClass, Nullability.nonNullable),
inferredExpressionType,
iterable,
errorTemplate: templateForInLoopTypeNotIterable,
nullabilityErrorTemplate: templateForInLoopTypeNotIterableNullability,
nullabilityPartErrorTemplate:
templateForInLoopTypeNotIterablePartNullability);
errorTemplate: templateForInLoopTypeNotIterable);
DartType inferredType = const DynamicType();
if (inferredExpressionType is TypeDeclarationType) {
// TODO(johnniwinther): Should we use the type of
@@ -1803,10 +1796,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase
Nullability.nonNullable),
result.expressionType.unwrapTypeView(),
iterable,
errorTemplate: templateForInLoopTypeNotIterable,
nullabilityErrorTemplate: templateForInLoopTypeNotIterableNullability,
nullabilityPartErrorTemplate:
templateForInLoopTypeNotIterablePartNullability);
errorTemplate: templateForInLoopTypeNotIterable);
// This is matched by the call to [forEach_end] in
// [inferElement], [inferMapEntry] or [inferForInStatement].
flowAnalysis.forEach_bodyBegin(node);
@@ -6774,14 +6764,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase
DartType contextType =
rightType.withDeclaredNullability(Nullability.nullable);
rightResult = ensureAssignableResult(contextType, rightResult,
errorTemplate: templateArgumentTypeNotAssignable,
nullabilityErrorTemplate: templateArgumentTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateArgumentTypeNotAssignablePartNullability,
nullabilityNullErrorTemplate:
templateArgumentTypeNotAssignableNullabilityNull,
nullabilityNullTypeErrorTemplate:
templateArgumentTypeNotAssignableNullabilityNullType);
errorTemplate: templateArgumentTypeNotAssignable);
right = rightResult.expression;
FunctionType functionType =
@@ -349,12 +349,6 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
bool isVoidAllowed = false,
bool coerceExpression = true,
Template<Message Function(DartType, DartType)>? errorTemplate,
Template<Message Function(DartType, DartType)>? nullabilityErrorTemplate,
Template<Message Function(DartType)>? nullabilityNullErrorTemplate,
Template<Message Function(DartType, DartType)>?
nullabilityNullTypeErrorTemplate,
Template<Message Function(DartType, DartType, DartType, DartType)>?
nullabilityPartErrorTemplate,
Map<SharedTypeView, NonPromotionReason> Function()? whyNotPromoted}) {
return ensureAssignableResult(expectedType,
new ExpressionInferenceResult(expressionType, expression),
@@ -364,10 +358,6 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
isVoidAllowed: isVoidAllowed,
coerceExpression: coerceExpression,
errorTemplate: errorTemplate,
nullabilityErrorTemplate: nullabilityErrorTemplate,
nullabilityNullErrorTemplate: nullabilityNullErrorTemplate,
nullabilityNullTypeErrorTemplate: nullabilityNullTypeErrorTemplate,
nullabilityPartErrorTemplate: nullabilityPartErrorTemplate,
whyNotPromoted: whyNotPromoted)
.expression;
}
@@ -463,34 +453,8 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
bool isVoidAllowed = false,
bool isCoercionAllowed = true,
Template<Message Function(DartType, DartType)>? errorTemplate,
Template<Message Function(DartType, DartType)>? nullabilityErrorTemplate,
Template<Message Function(DartType)>? nullabilityNullErrorTemplate,
Template<Message Function(DartType, DartType)>?
nullabilityNullTypeErrorTemplate,
Template<Message Function(DartType, DartType, DartType, DartType)>?
nullabilityPartErrorTemplate,
Map<SharedTypeView, NonPromotionReason> Function()? whyNotPromoted}) {
// [errorTemplate], [nullabilityErrorTemplate], and
// [nullabilityPartErrorTemplate] should be provided together.
assert((errorTemplate == null) == (nullabilityErrorTemplate == null) &&
(nullabilityErrorTemplate == null) ==
(nullabilityPartErrorTemplate == null));
// [nullabilityNullErrorTemplate] and [nullabilityNullTypeErrorTemplate]
// should be provided together.
assert((nullabilityNullErrorTemplate == null) ==
(nullabilityNullTypeErrorTemplate == null));
errorTemplate ??= templateInvalidAssignmentError;
if (nullabilityErrorTemplate == null) {
// Use [templateInvalidAssignmentErrorNullabilityNull] only if no
// specific [nullabilityErrorTemplate] template was passed.
nullabilityNullErrorTemplate ??=
templateInvalidAssignmentErrorNullabilityNull;
}
nullabilityNullTypeErrorTemplate ??= nullabilityErrorTemplate ??
templateInvalidAssignmentErrorNullabilityNullType;
nullabilityErrorTemplate ??= templateInvalidAssignmentErrorNullability;
nullabilityPartErrorTemplate ??=
templateInvalidAssignmentErrorPartNullability;
fileOffset ??= inferenceResult.expression.fileOffset;
contextType = computeGreatestClosure(contextType);
@@ -558,47 +522,29 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
break;
case AssignabilityKind.unassignableNullability:
if (expressionType == assignabilityResult.subtype &&
contextType == assignabilityResult.supertype) {
if (expression is NullLiteral &&
nullabilityNullErrorTemplate != null) {
result = _wrapUnassignableExpression(
expression,
expressionType,
contextType,
nullabilityNullErrorTemplate
.withArguments(declaredContextType ?? contextType));
} else if (expressionType is NullType) {
result = _wrapUnassignableExpression(
expression,
expressionType,
contextType,
nullabilityNullTypeErrorTemplate.withArguments(
expressionType, declaredContextType ?? contextType));
} else {
whyNotPromoted ??= flowAnalysis.whyNotPromoted(expression);
result = _wrapUnassignableExpression(
expression,
expressionType,
contextType,
nullabilityErrorTemplate.withArguments(
expressionType, declaredContextType ?? contextType),
context: getWhyNotPromotedContext(
whyNotPromoted.call(),
expression,
// Coverage-ignore(suite): Not run.
(type) => typeSchemaEnvironment.isSubtypeOf(type,
contextType, SubtypeCheckMode.withNullabilities)));
}
contextType == assignabilityResult.supertype &&
expression is! NullLiteral &&
expressionType is! NullType) {
whyNotPromoted ??= flowAnalysis.whyNotPromoted(expression);
result = _wrapUnassignableExpression(
expression,
expressionType,
contextType,
errorTemplate.withArguments(
expressionType, declaredContextType ?? contextType),
context: getWhyNotPromotedContext(
whyNotPromoted.call(),
expression,
// Coverage-ignore(suite): Not run.
(type) => typeSchemaEnvironment.isSubtypeOf(
type, contextType, SubtypeCheckMode.withNullabilities)));
} else {
result = _wrapUnassignableExpression(
expression,
expressionType,
contextType,
nullabilityPartErrorTemplate.withArguments(
expressionType,
declaredContextType ?? contextType,
assignabilityResult.subtype!,
assignabilityResult.supertype!));
errorTemplate.withArguments(
expressionType, declaredContextType ?? contextType));
}
break;
}
@@ -623,12 +569,6 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
bool isVoidAllowed = false,
bool coerceExpression = true,
Template<Message Function(DartType, DartType)>? errorTemplate,
Template<Message Function(DartType, DartType)>? nullabilityErrorTemplate,
Template<Message Function(DartType)>? nullabilityNullErrorTemplate,
Template<Message Function(DartType, DartType)>?
nullabilityNullTypeErrorTemplate,
Template<Message Function(DartType, DartType, DartType, DartType)>?
nullabilityPartErrorTemplate,
Map<SharedTypeView, NonPromotionReason> Function()? whyNotPromoted}) {
if (coerceExpression) {
ExpressionInferenceResult? coercionResult = coerceExpressionForAssignment(
@@ -651,10 +591,6 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
isVoidAllowed: isVoidAllowed,
isCoercionAllowed: coerceExpression,
errorTemplate: errorTemplate,
nullabilityErrorTemplate: nullabilityErrorTemplate,
nullabilityNullErrorTemplate: nullabilityNullErrorTemplate,
nullabilityNullTypeErrorTemplate: nullabilityNullTypeErrorTemplate,
nullabilityPartErrorTemplate: nullabilityPartErrorTemplate,
whyNotPromoted: whyNotPromoted);
return inferenceResult;
@@ -2066,15 +2002,7 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
expectedType, argumentResultToCheck,
isVoidAllowed: expectedType is VoidType,
isCoercionAllowed: coerceExpression,
errorTemplate: templateArgumentTypeNotAssignable,
nullabilityErrorTemplate:
templateArgumentTypeNotAssignableNullability,
nullabilityPartErrorTemplate:
templateArgumentTypeNotAssignablePartNullability,
nullabilityNullErrorTemplate:
templateArgumentTypeNotAssignableNullabilityNull,
nullabilityNullTypeErrorTemplate:
templateArgumentTypeNotAssignableNullabilityNullType);
errorTemplate: templateArgumentTypeNotAssignable);
argumentExpression = argumentResultToCheck.expression;
if (namedArgumentExpression == null) {
-146
View File
@@ -4074,45 +4074,6 @@ ArgumentTypeNotAssignable:
method(1.5);
}
ArgumentTypeNotAssignableNullability:
problemMessage: "The argument type '#type' can't be assigned to the parameter type '#type2' because '#type' is nullable and '#type2' isn't."
analyzerCode: ARGUMENT_TYPE_NOT_ASSIGNABLE
script: >
method(int i) {}
main() {
int? j = null;
method(j);
}
ArgumentTypeNotAssignablePartNullability:
problemMessage: "The argument type '#type' can't be assigned to the parameter type '#type2' because '#type3' is nullable and '#type4' isn't."
analyzerCode: ARGUMENT_TYPE_NOT_ASSIGNABLE
script: >
method(List<int> i) {}
main() {
List<int?> j = [null];
method(j);
}
ArgumentTypeNotAssignableNullabilityNull:
problemMessage: "The value 'null' can't be assigned to the parameter type '#type' because '#type' is not nullable."
analyzerCode: ARGUMENT_TYPE_NOT_ASSIGNABLE
script: >
method(int i) {}
main() {
method(null);
}
ArgumentTypeNotAssignableNullabilityNullType:
problemMessage: "The argument type '#type' can't be assigned to the parameter type '#type2' because '#type2' is not nullable."
analyzerCode: ARGUMENT_TYPE_NOT_ASSIGNABLE
script: >
method(int i) {}
main() {
Null n;
method(n);
}
InvalidAssignmentError:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2'."
analyzerCode: INVALID_ASSIGNMENT
@@ -4122,45 +4083,6 @@ InvalidAssignmentError:
i = 1.5;
}
InvalidAssignmentErrorNullability:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't."
analyzerCode: INVALID_ASSIGNMENT
script: >
main() {
int i = 0;
int? j;
i = j;
}
InvalidAssignmentErrorPartNullability:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't."
analyzerCode: INVALID_ASSIGNMENT
script: >
main() {
List<int> i = [];
List<int?> j = [null];
i = j;
}
InvalidAssignmentErrorNullabilityNull:
problemMessage: "The value 'null' can't be assigned to a variable of type '#type' because '#type' is not nullable."
analyzerCode: INVALID_ASSIGNMENT
script: >
main() {
int i = 0;
i = null;
}
InvalidAssignmentErrorNullabilityNullType:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2' because '#type2' is not nullable."
analyzerCode: INVALID_ASSIGNMENT
script: >
main() {
Null n;
int i = 0;
i = n;
}
PatchClassTypeParametersMismatch:
problemMessage: "A patch class must have the same number of type variables as its origin class."
@@ -4453,26 +4375,6 @@ ForInLoopElementTypeNotAssignable:
for (int i in list) {}
}
ForInLoopElementTypeNotAssignableNullability:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2' because '#type' is nullable and '#type2' isn't."
correctionMessage: "Try changing the type of the variable."
analyzerCode: FOR_IN_OF_INVALID_ELEMENT_TYPE
script: |
method() {
List<int?> list = [];
for (int i in list) {}
}
ForInLoopElementTypeNotAssignablePartNullability:
problemMessage: "A value of type '#type' can't be assigned to a variable of type '#type2' because '#type3' is nullable and '#type4' isn't."
correctionMessage: "Try changing the type of the variable."
analyzerCode: FOR_IN_OF_INVALID_ELEMENT_TYPE
script: |
method() {
List<List<int?>> list = [[]];
for (List<int> i in list) {}
}
ForInLoopTypeNotIterable:
problemMessage: "The type '#type' used in the 'for' loop must implement '#type2'."
analyzerCode: FOR_IN_OF_INVALID_TYPE
@@ -4482,22 +4384,6 @@ ForInLoopTypeNotIterable:
for (int i in list) {}
}
ForInLoopTypeNotIterableNullability:
problemMessage: "The type '#type' used in the 'for' loop must implement '#type2' because '#type' is nullable and '#type2' isn't."
analyzerCode: FOR_IN_OF_INVALID_TYPE
script: |
method() {
List<int>? list = null;
for (int i in list) {}
}
# This cannot never occur since the iterable is checked to be assignable to `Iterable<dynamic>` so nullability can
# only be a problem at the immediate level as in [ForInLoopTypeNotIterableNullability]. The message is needed for
# symmetry in the call site.
ForInLoopTypeNotIterablePartNullability:
problemMessage: "The type '#type' used in the 'for' loop must implement '#type2' because '#type3' is nullable and '#type4' isn't."
analyzerCode: FOR_IN_OF_INVALID_TYPE
InitializingFormalTypeMismatch:
problemMessage: "The type of parameter '#name', '#type' is not a subtype of the corresponding field's type, '#type2'."
correctionMessage: "Try changing the type of parameter '#name' to a subtype of '#type2'."
@@ -4696,42 +4582,10 @@ InvalidReturn:
problemMessage: "A value of type '#type' can't be returned from a function with return type '#type2'."
declaration: "int foo() { return true; }"
InvalidReturnNullability:
problemMessage: "A value of type '#type' can't be returned from a function with return type '#type2' because '#type' is nullable and '#type2' isn't."
declaration: "int foo(int? i) { return i; }"
InvalidReturnPartNullability:
problemMessage: "A value of type '#type' can't be returned from a function with return type '#type2' because '#type3' is nullable and '#type4' isn't."
declaration: "List<int> foo(List<int?> list) { return list; }"
InvalidReturnNullabilityNull:
problemMessage: "The value 'null' can't be returned from a function with return type '#type' because '#type' is not nullable."
declaration: "int foo() { return null; }"
InvalidReturnNullabilityNullType:
problemMessage: "A value of type '#type' can't be returned from a function with return type '#type2' because '#type2' is not nullable."
declaration: "int foo(Null i) { return i; }"
InvalidReturnAsync:
problemMessage: "A value of type '#type' can't be returned from an async function with return type '#type2'."
declaration: "Future<int> foo() async { return true; }"
InvalidReturnAsyncNullability:
problemMessage: "A value of type '#type' can't be returned from an async function with return type '#type2' because '#type' is nullable and '#type2' isn't."
declaration: "Future<int> foo(int? i) async { return i; }"
InvalidReturnAsyncPartNullability:
problemMessage: "A value of type '#type' can't be returned from an async function with return type '#type2' because '#type3' is nullable and '#type4' isn't."
declaration: "Future<List<int>> foo(List<int?> list) async { return list; }"
InvalidReturnAsyncNullabilityNull:
problemMessage: "The value 'null' can't be returned from an async function with return type '#type' because '#type' is not nullable."
declaration: "Future<int> foo() async { return null; }"
InvalidReturnAsyncNullabilityNullType:
problemMessage: "A value of type '#type' can't be returned from an async function with return type '#type2' because '#type2' is not nullable."
declaration: "Future<int> foo(Null n) async { return n; }"
ImplicitReturnNull:
problemMessage: "A non-null value must be returned since the return type '#type' doesn't allow null."
script: |
@@ -195,7 +195,7 @@ const Map<String, ({int hitCount, int missCount})> _expect = {
),
// 100.0%.
"package:front_end/src/base/name_space.dart": (
hitCount: 129,
hitCount: 133,
missCount: 0,
),
// 100.0%.
@@ -1061,12 +1061,12 @@ const Map<String, ({int hitCount, int missCount})> _expect = {
),
// 100.0%.
"package:front_end/src/type_inference/inference_visitor.dart": (
hitCount: 8392,
hitCount: 8371,
missCount: 0,
),
// 100.0%.
"package:front_end/src/type_inference/inference_visitor_base.dart": (
hitCount: 2460,
hitCount: 2447,
missCount: 0,
),
// 100.0%.
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
// int Function(int, int) f = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
// int Function(int, int?) h = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
// method(alias);
// ^
//
@@ -38,20 +38,20 @@ static method id<T extends core::Object? = dynamic>(self::id::T% t, core::int i)
static method method((core::int, core::int?) → core::int f) → dynamic {}
static method test() → dynamic {
self::Class c = new self::Class::•();
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
int Function(int, int) f = alias;
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t1 = self::alias in #t1 == null ?{(core::int, core::int) →? core::int} null : #t1{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int) → core::int;
(core::int, core::int?) →? core::int g;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = alias;
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t2 = self::alias in #t2 == null ?{(core::int, core::int) →? core::int} null : #t2{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
int Function(int, int?) h = c;
^" in ((let final self::Class #t3 = c in #t3 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t3.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) → core::int;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = c;
^" in ((let final self::Class #t4 = c in #t4 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t4.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
method(alias);
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t5 = self::alias in #t5 == null ?{(core::int, core::int) →? core::int} null : #t5{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) → core::int);
}
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
// int Function(int, int) f = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
// int Function(int, int?) h = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
// method(alias);
// ^
//
@@ -38,20 +38,20 @@ static method id<T extends core::Object? = dynamic>(self::id::T% t, core::int i)
static method method((core::int, core::int?) → core::int f) → dynamic {}
static method test() → dynamic {
self::Class c = new self::Class::•();
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
int Function(int, int) f = alias;
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t1 = self::alias in #t1 == null ?{(core::int, core::int) →? core::int} null : #t1{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int) → core::int;
(core::int, core::int?) →? core::int g;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = alias;
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t2 = self::alias in #t2 == null ?{(core::int, core::int) →? core::int} null : #t2{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
int Function(int, int?) h = c;
^" in ((let final self::Class #t3 = c in #t3 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t3.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) → core::int;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = c;
^" in ((let final self::Class #t4 = c in #t4 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t4.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
method(alias);
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t5 = self::alias in #t5 == null ?{(core::int, core::int) →? core::int} null : #t5{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) → core::int);
}
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
// int Function(int, int) f = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = alias;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
// int Function(int, int?) h = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
// g = c;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
// method(alias);
// ^
//
@@ -38,20 +38,20 @@ static method id<T extends core::Object? = dynamic>(self::id::T% t, core::int i)
static method method((core::int, core::int?) → core::int f) → dynamic {}
static method test() → dynamic {
self::Class c = new self::Class::•();
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)' because 'int Function(int, int)?' is nullable and 'int Function(int, int)' isn't.
(core::int, core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:16:30: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int)'.
int Function(int, int) f = alias;
^" in let (core::int, core::int) →? core::int #t1 = let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t2 = self::alias in #t2 == null ?{(core::int, core::int) →? core::int} null : #t2{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int> in #t1 == null ?{(core::int, core::int) → core::int} #t1 as{TypeError} (core::int, core::int) → core::int : #t1{(core::int, core::int) → core::int};
(core::int, core::int?) →? core::int g;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:18:7: Error: A value of type 'int Function(int, int)?' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = alias;
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t3 = self::alias in #t3 == null ?{(core::int, core::int) →? core::int} null : #t3{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
(core::int, core::int?) → core::int h = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:19:27: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)'.
int Function(int, int?) h = c;
^" in ((let final self::Class #t4 = c in #t4 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t4.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) → core::int;
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?' because 'int?' is nullable and 'int' isn't.
g = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:20:3: Error: A value of type 'int Function(int, int)' can't be assigned to a variable of type 'int Function(int, int?)?'.
g = c;
^" in ((let final self::Class #t5 = c in #t5 == null ?{<T extends core::Object? = dynamic>(T%, core::int) → T%} null : #t5.{self::Class::call}{<T extends core::Object? = dynamic>(T%, core::int) → T%})<core::int>) as{TypeError} (core::int, core::int?) →? core::int;
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)' because 'int?' is nullable and 'int' isn't.
self::method(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/implicit_instantiation_errors.dart:21:10: Error: The argument type 'int Function(int, int)?' can't be assigned to the parameter type 'int Function(int, int?)'.
method(alias);
^" in (let final <T extends core::Object? = dynamic>(T%, core::int) →? T% #t6 = self::alias in #t6 == null ?{(core::int, core::int) →? core::int} null : #t6{<T extends core::Object? = dynamic>(T%, core::int) → T%}<core::int>) as{TypeError} (core::int, core::int?) → core::int);
}
@@ -29,7 +29,7 @@ library;
// factory Link.create4({int i}) = LinkFactory.create;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
// - 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
// return null;
// ^
@@ -81,7 +81,7 @@ abstract class Link<T extends core::Object? = dynamic> extends core::Object {
}
class LinkFactory extends core::Object {
static factory create() → self::LinkFactory {
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
- 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
return null;
^" in null as{TypeError} self::LinkFactory;
@@ -29,7 +29,7 @@ library;
// factory Link.create4({int i}) = LinkFactory.create;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
// - 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
// return null;
// ^
@@ -81,7 +81,7 @@ abstract class Link<T extends core::Object? = dynamic> extends core::Object {
}
class LinkFactory extends core::Object {
static factory create() → self::LinkFactory {
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
- 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
return null;
^" in null as{TypeError} self::LinkFactory;
@@ -29,7 +29,7 @@ library;
// factory Link.create4({int i}) = LinkFactory.create;
// ^
//
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
// pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
// - 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
// return null;
// ^
@@ -81,7 +81,7 @@ abstract class Link<T extends core::Object? = dynamic> extends core::Object {
}
class LinkFactory extends core::Object {
static factory create() → self::LinkFactory {
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: The value 'null' can't be returned from a function with return type 'LinkFactory' because 'LinkFactory' is not nullable.
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart:14:12: Error: A value of type 'Null' can't be returned from a function with return type 'LinkFactory'.
- 'LinkFactory' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/invalid_redirect.dart'.
return null;
^" in let Null #t1 = null in #t1 == null ?{self::LinkFactory} #t1 as{TypeError} self::LinkFactory : #t1{self::LinkFactory};
@@ -2,22 +2,22 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = c; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = d2; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g1; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g2; // Error
// ^
@@ -385,22 +385,22 @@ static method test<T1 extends core::Object? = dynamic, T2 extends self::A, T3 ex
o = o;
o = a;
o = b;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = c; // Error
^" in c as{TypeError} core::Object;
o = d;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = d2; // Error
^" in d2 as{TypeError} core::Object;
o = e;
o = f;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g1; // Error
^" in g1 as{TypeError} core::Object;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g2; // Error
^" in g2 as{TypeError} core::Object;
@@ -2,22 +2,22 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = c; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = d2; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g1; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g2; // Error
// ^
@@ -385,22 +385,22 @@ static method test<T1 extends core::Object? = dynamic, T2 extends self::A, T3 ex
o = o;
o = a;
o = b;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = c; // Error
^" in c as{TypeError} core::Object;
o = d;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = d2; // Error
^" in d2 as{TypeError} core::Object;
o = e;
o = f;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g1; // Error
^" in g1 as{TypeError} core::Object;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g2; // Error
^" in g2 as{TypeError} core::Object;
@@ -2,22 +2,22 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = c; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = d2; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g1; // Error
// ^
//
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = g2; // Error
// ^
@@ -385,22 +385,22 @@ static method test<T1 extends core::Object? = dynamic, T2 extends self::A, T3 ex
o = o;
o = a;
o = b;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object' because 'C' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:39:7: Error: A value of type 'C' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = c; // Error
^" in let self::C% /* erasure=core::Object?, declared=! */ #t1 = c in #t1 == null ?{core::Object} #t1 as{TypeError} core::Object : #t1{core::Object};
o = d;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object' because 'D2' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:41:7: Error: A value of type 'D2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = d2; // Error
^" in let self::D2% /* erasure=core::Object, declared=! */ #t2 = d2 in #t2 == null ?{core::Object} #t2 as{TypeError} core::Object : #t2{core::Object};
o = e;
o = f;
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object' because 'G<T1>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:44:7: Error: A value of type 'G<T1>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g1; // Error
^" in let self::G<self::test::T1%>% /* erasure=self::test::T1%, declared=! */ #t3 = g1 in #t3 == null ?{core::Object} #t3 as{TypeError} core::Object : #t3{core::Object};
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object' because 'G<T2>' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/extension_types/assign_interface_type.dart:45:7: Error: A value of type 'G<T2>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = g2; // Error
^" in let self::G<self::test::T2>% /* erasure=self::test::T2, declared=! */ #t4 = g2 in #t4 == null ?{core::Object} #t4 as{TypeError} core::Object : #t4{core::Object};
@@ -10,7 +10,7 @@ library;
// class A<Supertype, Subtype extends Supertype> {}
// ^
//
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
// f = returnsNull; // Error.
// ^
//
@@ -43,7 +43,7 @@ static method returnsNull<Y extends self::E /* erasure=core::num */>() → Null
return null;
static method test3() → dynamic {
<X extends self::E /* erasure=core::num */ = dynamic>() → X f = self::foo();
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
f = returnsNull; // Error.
^" in #C1 as{TypeError} Never;
}
@@ -10,7 +10,7 @@ library;
// class A<Supertype, Subtype extends Supertype> {}
// ^
//
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
// f = returnsNull; // Error.
// ^
//
@@ -43,7 +43,7 @@ static method returnsNull<Y extends self::E /* erasure=core::num */>() → Null
return null;
static method test3() → dynamic {
<X extends self::E /* erasure=core::num */ = dynamic>() → X f = self::foo();
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
f = returnsNull; // Error.
^" in #C1 as{TypeError} Never;
}
@@ -10,7 +10,7 @@ library;
// class A<Supertype, Subtype extends Supertype> {}
// ^
//
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
// pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
// f = returnsNull; // Error.
// ^
//
@@ -43,7 +43,7 @@ static method returnsNull<Y extends self::E /* erasure=core::num */>() → Null
return null;
static method test3() → dynamic {
<X extends self::E /* erasure=core::num */ = dynamic>() → X f = self::foo();
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()' because 'Null' is nullable and 'X' isn't.
f = invalid-expression "pkg/front_end/testcases/extension_types/issue54625_2.dart:21:7: Error: A value of type 'Null Function<Y extends E>()' can't be assigned to a variable of type 'X Function<X extends E>()'.
f = returnsNull; // Error.
^" in #C1 as{TypeError} Never;
}
@@ -2,124 +2,124 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = e1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
// e1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = e3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = e5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
// e5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
// - 'Object' is from 'dart:core'.
// e6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
// e7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = x1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
// x1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
// x2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = x3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
// x3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
// x4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = x5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
// x5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
// x6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
// x7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v12 = v11; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v21 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v32 = v31; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v41 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v52 = v51; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v61 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v71 = null; // Error.
// ^
@@ -205,124 +205,124 @@ static extension-type-member method E7|constructor#(core::num it) → self::E7 /
static extension-type-member synthetic method E7|constructor#_#new#tearOff(core::num it) → self::E7 /* erasure=core::num */
return self::E7|constructor#(it);
static method test1(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = e1; // Error.
^" in e1 as{TypeError} core::Object;
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
e1 = null; // Error.
^" in null as{TypeError} self::E1% /* erasure=core::Object, declared=! */;
core::Object v2 = e2;
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2 = null; // Error.
^" in null as{TypeError} self::E2 /* erasure=core::Object */;
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = e3; // Error.
^" in e3 as{TypeError} core::Object;
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3 = null; // Error.
^" in null as{TypeError} self::E3% /* erasure=core::Object, declared=! */;
core::Object v4 = e4;
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4 = null; // Error.
^" in null as{TypeError} self::E4 /* erasure=core::Object */;
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = e5; // Error.
^" in e5 as{TypeError} core::Object;
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
e5 = null; // Error.
^" in null as{TypeError} self::E5<dynamic>% /* erasure=dynamic, declared=! */;
core::Object v6 = e6;
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
- 'Object' is from 'dart:core'.
e6 = null; // Error.
^" in null as{TypeError} self::E6<core::Object> /* erasure=core::Object */;
core::Object v7 = e7;
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
e7 = null; // Error.
^" in null as{TypeError} self::E7 /* erasure=core::num */;
}
static method test2<X1 extends self::E1% /* erasure=core::Object, declared=! */, X2 extends self::E2 /* erasure=core::Object */, X3 extends self::E3% /* erasure=core::Object, declared=! */, X4 extends self::E4 /* erasure=core::Object */, X5 extends self::E5<dynamic>% /* erasure=dynamic, declared=! */, X6 extends self::E6<core::Object> /* erasure=core::Object */, X7 extends self::E7 /* erasure=core::num */>(self::test2::X1% x1, self::test2::X2 x2, self::test2::X3% x3, self::test2::X4 x4, self::test2::X5% x5, self::test2::X6 x6, self::test2::X7 x7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = x1; // Error.
^" in x1 as{TypeError} core::Object;
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
x1 = null; // Error.
^" in null as{TypeError} Never;
core::Object v2 = x2;
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
x2 = null; // Error.
^" in null as{TypeError} Never;
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = x3; // Error.
^" in x3 as{TypeError} core::Object;
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
x3 = null; // Error.
^" in null as{TypeError} Never;
core::Object v4 = x4;
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
x4 = null; // Error.
^" in null as{TypeError} Never;
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = x5; // Error.
^" in x5 as{TypeError} core::Object;
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
x5 = null; // Error.
^" in null as{TypeError} Never;
core::Object v6 = x6;
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
x6 = null; // Error.
^" in null as{TypeError} Never;
core::Object v7 = x7;
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
x7 = null; // Error.
^" in null as{TypeError} Never;
}
static method test3(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7, core::String s, core::bool b) → dynamic {
core::Object? v11 = b ?{core::Object?} e1 : s;
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v12 = v11; // Error.
^" in v11 as{TypeError} core::Object;
v11 = null;
core::Object v21 = b ?{core::Object} e2 : s;
core::Object v22 = v21;
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v21 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object? v31 = b ?{core::Object?} e3 : s;
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v32 = v31; // Error.
^" in v31 as{TypeError} core::Object;
v31 = null;
core::Object v41 = b ?{core::Object} e4 : s;
core::Object v42 = v41;
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v41 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object? v51 = b ?{core::Object?} e5 : s;
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v52 = v51; // Error.
^" in v51 as{TypeError} core::Object;
v51 = null;
core::Object v61 = b ?{core::Object} e6 : s;
core::Object v62 = v61;
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v61 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object v71 = b ?{core::Object} e7 : s;
core::Object v72 = v71;
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v71 = null; // Error.
^" in null as{TypeError} core::Object;
@@ -2,124 +2,124 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = e1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
// e1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = e3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = e5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
// e5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
// - 'Object' is from 'dart:core'.
// e6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
// e7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = x1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
// x1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
// x2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = x3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
// x3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
// x4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = x5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
// x5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
// x6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
// x7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v12 = v11; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v21 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v32 = v31; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v41 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v52 = v51; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v61 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v71 = null; // Error.
// ^
@@ -205,124 +205,124 @@ static extension-type-member method E7|constructor#(core::num it) → self::E7 /
static extension-type-member synthetic method E7|constructor#_#new#tearOff(core::num it) → self::E7 /* erasure=core::num */
return self::E7|constructor#(it);
static method test1(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = e1; // Error.
^" in e1 as{TypeError} core::Object;
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
e1 = null; // Error.
^" in null as{TypeError} self::E1% /* erasure=core::Object, declared=! */;
core::Object v2 = e2;
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2 = null; // Error.
^" in null as{TypeError} self::E2 /* erasure=core::Object */;
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = e3; // Error.
^" in e3 as{TypeError} core::Object;
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3 = null; // Error.
^" in null as{TypeError} self::E3% /* erasure=core::Object, declared=! */;
core::Object v4 = e4;
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4 = null; // Error.
^" in null as{TypeError} self::E4 /* erasure=core::Object */;
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = e5; // Error.
^" in e5 as{TypeError} core::Object;
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
e5 = null; // Error.
^" in null as{TypeError} self::E5<dynamic>% /* erasure=dynamic, declared=! */;
core::Object v6 = e6;
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
- 'Object' is from 'dart:core'.
e6 = null; // Error.
^" in null as{TypeError} self::E6<core::Object> /* erasure=core::Object */;
core::Object v7 = e7;
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
e7 = null; // Error.
^" in null as{TypeError} self::E7 /* erasure=core::num */;
}
static method test2<X1 extends self::E1% /* erasure=core::Object, declared=! */, X2 extends self::E2 /* erasure=core::Object */, X3 extends self::E3% /* erasure=core::Object, declared=! */, X4 extends self::E4 /* erasure=core::Object */, X5 extends self::E5<dynamic>% /* erasure=dynamic, declared=! */, X6 extends self::E6<core::Object> /* erasure=core::Object */, X7 extends self::E7 /* erasure=core::num */>(self::test2::X1% x1, self::test2::X2 x2, self::test2::X3% x3, self::test2::X4 x4, self::test2::X5% x5, self::test2::X6 x6, self::test2::X7 x7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = x1; // Error.
^" in x1 as{TypeError} core::Object;
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
x1 = null; // Error.
^" in null as{TypeError} Never;
core::Object v2 = x2;
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
x2 = null; // Error.
^" in null as{TypeError} Never;
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = x3; // Error.
^" in x3 as{TypeError} core::Object;
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
x3 = null; // Error.
^" in null as{TypeError} Never;
core::Object v4 = x4;
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
x4 = null; // Error.
^" in null as{TypeError} Never;
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = x5; // Error.
^" in x5 as{TypeError} core::Object;
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
x5 = null; // Error.
^" in null as{TypeError} Never;
core::Object v6 = x6;
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
x6 = null; // Error.
^" in null as{TypeError} Never;
core::Object v7 = x7;
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
x7 = null; // Error.
^" in null as{TypeError} Never;
}
static method test3(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7, core::String s, core::bool b) → dynamic {
core::Object? v11 = b ?{core::Object?} e1 : s;
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v12 = v11; // Error.
^" in v11 as{TypeError} core::Object;
v11 = null;
core::Object v21 = b ?{core::Object} e2 : s;
core::Object v22 = v21;
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v21 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object? v31 = b ?{core::Object?} e3 : s;
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v32 = v31; // Error.
^" in v31 as{TypeError} core::Object;
v31 = null;
core::Object v41 = b ?{core::Object} e4 : s;
core::Object v42 = v41;
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v41 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object? v51 = b ?{core::Object?} e5 : s;
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v52 = v51; // Error.
^" in v51 as{TypeError} core::Object;
v51 = null;
core::Object v61 = b ?{core::Object} e6 : s;
core::Object v62 = v61;
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v61 = null; // Error.
^" in null as{TypeError} core::Object;
core::Object v71 = b ?{core::Object} e7 : s;
core::Object v72 = v71;
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v71 = null; // Error.
^" in null as{TypeError} core::Object;
@@ -2,124 +2,124 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = e1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
// e1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = e3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = e5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
// e5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
// - 'Object' is from 'dart:core'.
// e6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
// e7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v1 = x1; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
// x1 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
// x2 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v3 = x3; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
// x3 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
// x4 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v5 = x5; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
// x5 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
// x6 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
// x7 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v12 = v11; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v21 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v32 = v31; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v41 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object v52 = v51; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v61 = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// v71 = null; // Error.
// ^
@@ -205,124 +205,124 @@ static extension-type-member method E7|constructor#(core::num it) → self::E7 /
static extension-type-member synthetic method E7|constructor#_#new#tearOff(core::num it) → self::E7 /* erasure=core::num */
return self::E7|constructor#(it);
static method test1(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object' because 'E1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:14:15: Error: A value of type 'E1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = e1; // Error.
^" in let self::E1% /* erasure=core::Object, declared=! */ #t1 = e1 in #t1 == null ?{core::Object} #t1 as{TypeError} core::Object : #t1{core::Object};
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: The value 'null' can't be assigned to a variable of type 'E1' because 'E1' is not nullable.
e1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:15:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E1'.
e1 = null; // Error.
^" in let Null #t2 = null in #t2 == null ?{self::E1% /* erasure=core::Object, declared=! */} #t2 as{TypeError} self::E1% /* erasure=core::Object, declared=! */ : #t2{self::E1% /* erasure=core::Object, declared=! */};
core::Object v2 = e2;
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:18:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2 = null; // Error.
^" in let Null #t3 = null in #t3 == null ?{self::E2 /* erasure=core::Object */} #t3 as{TypeError} self::E2 /* erasure=core::Object */ : #t3{self::E2 /* erasure=core::Object */};
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:20:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = e3; // Error.
^" in let self::E3% /* erasure=core::Object, declared=! */ #t4 = e3 in #t4 == null ?{core::Object} #t4 as{TypeError} core::Object : #t4{core::Object};
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:21:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3 = null; // Error.
^" in let Null #t5 = null in #t5 == null ?{self::E3% /* erasure=core::Object, declared=! */} #t5 as{TypeError} self::E3% /* erasure=core::Object, declared=! */ : #t5{self::E3% /* erasure=core::Object, declared=! */};
core::Object v4 = e4;
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:24:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4 = null; // Error.
^" in let Null #t6 = null in #t6 == null ?{self::E4 /* erasure=core::Object */} #t6 as{TypeError} self::E4 /* erasure=core::Object */ : #t6{self::E4 /* erasure=core::Object */};
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object' because 'E5<dynamic>' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:26:15: Error: A value of type 'E5<dynamic>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = e5; // Error.
^" in let self::E5<dynamic>% /* erasure=dynamic, declared=! */ #t7 = e5 in #t7 == null ?{core::Object} #t7 as{TypeError} core::Object : #t7{core::Object};
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: The value 'null' can't be assigned to a variable of type 'E5<dynamic>' because 'E5<dynamic>' is not nullable.
e5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:27:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E5<dynamic>'.
e5 = null; // Error.
^" in let Null #t8 = null in #t8 == null ?{self::E5<dynamic>% /* erasure=dynamic, declared=! */} #t8 as{TypeError} self::E5<dynamic>% /* erasure=dynamic, declared=! */ : #t8{self::E5<dynamic>% /* erasure=dynamic, declared=! */};
core::Object v6 = e6;
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: The value 'null' can't be assigned to a variable of type 'E6<Object>' because 'E6<Object>' is not nullable.
e6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:30:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E6<Object>'.
- 'Object' is from 'dart:core'.
e6 = null; // Error.
^" in let Null #t9 = null in #t9 == null ?{self::E6<core::Object> /* erasure=core::Object */} #t9 as{TypeError} self::E6<core::Object> /* erasure=core::Object */ : #t9{self::E6<core::Object> /* erasure=core::Object */};
core::Object v7 = e7;
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: The value 'null' can't be assigned to a variable of type 'E7' because 'E7' is not nullable.
e7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:33:8: Error: A value of type 'Null' can't be assigned to a variable of type 'E7'.
e7 = null; // Error.
^" in let Null #t10 = null in #t10 == null ?{self::E7 /* erasure=core::num */} #t10 as{TypeError} self::E7 /* erasure=core::num */ : #t10{self::E7 /* erasure=core::num */};
}
static method test2<X1 extends self::E1% /* erasure=core::Object, declared=! */, X2 extends self::E2 /* erasure=core::Object */, X3 extends self::E3% /* erasure=core::Object, declared=! */, X4 extends self::E4 /* erasure=core::Object */, X5 extends self::E5<dynamic>% /* erasure=dynamic, declared=! */, X6 extends self::E6<core::Object> /* erasure=core::Object */, X7 extends self::E7 /* erasure=core::num */>(self::test2::X1% x1, self::test2::X2 x2, self::test2::X3% x3, self::test2::X4 x4, self::test2::X5% x5, self::test2::X6 x6, self::test2::X7 x7) → dynamic {
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object' because 'X1' is nullable and 'Object' isn't.
core::Object v1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:38:15: Error: A value of type 'X1' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v1 = x1; // Error.
^" in let self::test2::X1% #t11 = x1 in #t11 == null ?{core::Object} #t11 as{TypeError} core::Object : #t11{core::Object};
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: The value 'null' can't be assigned to a variable of type 'X1' because 'X1' is not nullable.
x1 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:39:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X1'.
x1 = null; // Error.
^" in let Null #t12 = null in #t12 == null ?{Never} #t12 as{TypeError} Never : #t12{Never};
core::Object v2 = x2;
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: The value 'null' can't be assigned to a variable of type 'X2' because 'X2' is not nullable.
x2 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:42:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X2'.
x2 = null; // Error.
^" in let Null #t13 = null in #t13 == null ?{Never} #t13 as{TypeError} Never : #t13{Never};
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object' because 'X3' is nullable and 'Object' isn't.
core::Object v3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:44:15: Error: A value of type 'X3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v3 = x3; // Error.
^" in let self::test2::X3% #t14 = x3 in #t14 == null ?{core::Object} #t14 as{TypeError} core::Object : #t14{core::Object};
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: The value 'null' can't be assigned to a variable of type 'X3' because 'X3' is not nullable.
x3 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:45:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X3'.
x3 = null; // Error.
^" in let Null #t15 = null in #t15 == null ?{Never} #t15 as{TypeError} Never : #t15{Never};
core::Object v4 = x4;
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: The value 'null' can't be assigned to a variable of type 'X4' because 'X4' is not nullable.
x4 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:48:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X4'.
x4 = null; // Error.
^" in let Null #t16 = null in #t16 == null ?{Never} #t16 as{TypeError} Never : #t16{Never};
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object' because 'X5' is nullable and 'Object' isn't.
core::Object v5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:50:15: Error: A value of type 'X5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v5 = x5; // Error.
^" in let self::test2::X5% #t17 = x5 in #t17 == null ?{core::Object} #t17 as{TypeError} core::Object : #t17{core::Object};
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: The value 'null' can't be assigned to a variable of type 'X5' because 'X5' is not nullable.
x5 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:51:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X5'.
x5 = null; // Error.
^" in let Null #t18 = null in #t18 == null ?{Never} #t18 as{TypeError} Never : #t18{Never};
core::Object v6 = x6;
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: The value 'null' can't be assigned to a variable of type 'X6' because 'X6' is not nullable.
x6 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:54:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X6'.
x6 = null; // Error.
^" in let Null #t19 = null in #t19 == null ?{Never} #t19 as{TypeError} Never : #t19{Never};
core::Object v7 = x7;
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: The value 'null' can't be assigned to a variable of type 'X7' because 'X7' is not nullable.
x7 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:57:8: Error: A value of type 'Null' can't be assigned to a variable of type 'X7'.
x7 = null; // Error.
^" in let Null #t20 = null in #t20 == null ?{Never} #t20 as{TypeError} Never : #t20{Never};
}
static method test3(self::E1% /* erasure=core::Object, declared=! */ e1, self::E2 /* erasure=core::Object */ e2, self::E3% /* erasure=core::Object, declared=! */ e3, self::E4 /* erasure=core::Object */ e4, self::E5<dynamic>% /* erasure=dynamic, declared=! */ e5, self::E6<core::Object> /* erasure=core::Object */ e6, self::E7 /* erasure=core::num */ e7, core::String s, core::bool b) → dynamic {
core::Object? v11 = b ?{core::Object?} e1 : s;
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v12 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:62:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v12 = v11; // Error.
^" in let core::Object? #t21 = v11 in #t21 == null ?{core::Object} #t21 as{TypeError} core::Object : #t21{core::Object};
v11 = null;
core::Object v21 = b ?{core::Object} e2 : s;
core::Object v22 = v21;
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v21 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:67:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v21 = null; // Error.
^" in let Null #t22 = null in #t22 == null ?{core::Object} #t22 as{TypeError} core::Object : #t22{core::Object};
core::Object? v31 = b ?{core::Object?} e3 : s;
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v32 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:70:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v32 = v31; // Error.
^" in let core::Object? #t23 = v31 in #t23 == null ?{core::Object} #t23 as{TypeError} core::Object : #t23{core::Object};
v31 = null;
core::Object v41 = b ?{core::Object} e4 : s;
core::Object v42 = v41;
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v41 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:75:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v41 = null; // Error.
^" in let Null #t24 = null in #t24 == null ?{core::Object} #t24 as{TypeError} core::Object : #t24{core::Object};
core::Object? v51 = b ?{core::Object?} e5 : s;
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object v52 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:78:16: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object v52 = v51; // Error.
^" in let core::Object? #t25 = v51 in #t25 == null ?{core::Object} #t25 as{TypeError} core::Object : #t25{core::Object};
v51 = null;
core::Object v61 = b ?{core::Object} e6 : s;
core::Object v62 = v61;
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v61 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:83:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v61 = null; // Error.
^" in let Null #t26 = null in #t26 == null ?{core::Object} #t26 as{TypeError} core::Object : #t26{core::Object};
core::Object v71 = b ?{core::Object} e7 : s;
core::Object v72 = v71;
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: The value 'null' can't be assigned to a variable of type 'Object' because 'Object' is not nullable.
v71 = invalid-expression "pkg/front_end/testcases/extension_types/non_nullable_if_implements_object.dart:87:9: Error: A value of type 'Null' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
v71 = null; // Error.
^" in let Null #t27 = null in #t27 == null ?{core::Object} #t27 as{TypeError} core::Object : #t27{core::Object};
@@ -62,57 +62,57 @@ library;
// E5 e5NNR, // Error.
// ^^^^^
//
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1numNullable = e1numNullableNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1double = e1doubleNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x2 = e2NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x3 = e3NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x4 = e4NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x5 = e5NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
// e1numNullableNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
// e1doubleNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
// e5NN = null; // Error.
// ^
//
@@ -216,48 +216,48 @@ static extension-type-member method E5|constructor#(self::E2% /* erasure=core::O
static extension-type-member synthetic method E5|constructor#_#new#tearOff(self::E2% /* erasure=core::Object?, declared=! */ foo) → self::E5% /* erasure=core::Object?, declared=! */
return self::E5|constructor#(foo);
static method testNotNonNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNNN, self::E2% /* erasure=core::Object?, declared=! */ e2NNN, self::E3% /* erasure=core::String?, declared=! */ e3NNN, self::E4% /* erasure=core::int, declared=! */ e4NNN, self::E5% /* erasure=core::Object?, declared=! */ e5NNN) → dynamic {
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1numNullable = e1numNullableNNN; // Error.
^" in e1numNullableNNN as{TypeError} core::Object;
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1double = e1doubleNNN; // Error.
^" in e1doubleNNN as{TypeError} core::Object;
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x2 = e2NNN; // Error.
^" in e2NNN as{TypeError} core::Object;
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x3 = e3NNN; // Error.
^" in e3NNN as{TypeError} core::Object;
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x4 = e4NNN; // Error.
^" in e4NNN as{TypeError} core::Object;
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x5 = e5NNN; // Error.
^" in e5NNN as{TypeError} core::Object;
}
static method testNotNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNN, self::E2% /* erasure=core::Object?, declared=! */ e2NN, self::E3% /* erasure=core::String?, declared=! */ e3NN, self::E4% /* erasure=core::int, declared=! */ e4NN, self::E5% /* erasure=core::Object?, declared=! */ e5NN, self::E1<core::num?>? /* erasure=core::num? */ e1numNullableNNNullable, self::E1<core::double>? /* erasure=core::double? */ e1doubleNNNullable, self::E2? /* erasure=core::Object? */ e2NNNullable, self::E3? /* erasure=core::String? */ e3NNNullable, self::E4? /* erasure=core::int? */ e4NNNullable, self::E5? /* erasure=core::Object? */ e5NNNullable) → dynamic {
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
e1numNullableNN = null; // Error.
^" in null as{TypeError} self::E1<core::num?>% /* erasure=core::num?, declared=! */;
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
e1doubleNN = null; // Error.
^" in null as{TypeError} self::E1<core::double>% /* erasure=core::double, declared=! */;
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2NN = null; // Error.
^" in null as{TypeError} self::E2% /* erasure=core::Object?, declared=! */;
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3NN = null; // Error.
^" in null as{TypeError} self::E3% /* erasure=core::String?, declared=! */;
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4NN = null; // Error.
^" in null as{TypeError} self::E4% /* erasure=core::int, declared=! */;
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
e5NN = null; // Error.
^" in null as{TypeError} self::E5% /* erasure=core::Object?, declared=! */;
e1numNullableNNNullable = null;
@@ -62,57 +62,57 @@ library;
// E5 e5NNR, // Error.
// ^^^^^
//
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1numNullable = e1numNullableNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1double = e1doubleNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x2 = e2NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x3 = e3NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x4 = e4NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x5 = e5NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
// e1numNullableNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
// e1doubleNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
// e5NN = null; // Error.
// ^
//
@@ -216,48 +216,48 @@ static extension-type-member method E5|constructor#(self::E2% /* erasure=core::O
static extension-type-member synthetic method E5|constructor#_#new#tearOff(self::E2% /* erasure=core::Object?, declared=! */ foo) → self::E5% /* erasure=core::Object?, declared=! */
return self::E5|constructor#(foo);
static method testNotNonNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNNN, self::E2% /* erasure=core::Object?, declared=! */ e2NNN, self::E3% /* erasure=core::String?, declared=! */ e3NNN, self::E4% /* erasure=core::int, declared=! */ e4NNN, self::E5% /* erasure=core::Object?, declared=! */ e5NNN) → dynamic {
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1numNullable = e1numNullableNNN; // Error.
^" in e1numNullableNNN as{TypeError} core::Object;
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1double = e1doubleNNN; // Error.
^" in e1doubleNNN as{TypeError} core::Object;
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x2 = e2NNN; // Error.
^" in e2NNN as{TypeError} core::Object;
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x3 = e3NNN; // Error.
^" in e3NNN as{TypeError} core::Object;
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x4 = e4NNN; // Error.
^" in e4NNN as{TypeError} core::Object;
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x5 = e5NNN; // Error.
^" in e5NNN as{TypeError} core::Object;
}
static method testNotNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNN, self::E2% /* erasure=core::Object?, declared=! */ e2NN, self::E3% /* erasure=core::String?, declared=! */ e3NN, self::E4% /* erasure=core::int, declared=! */ e4NN, self::E5% /* erasure=core::Object?, declared=! */ e5NN, self::E1<core::num?>? /* erasure=core::num? */ e1numNullableNNNullable, self::E1<core::double>? /* erasure=core::double? */ e1doubleNNNullable, self::E2? /* erasure=core::Object? */ e2NNNullable, self::E3? /* erasure=core::String? */ e3NNNullable, self::E4? /* erasure=core::int? */ e4NNNullable, self::E5? /* erasure=core::Object? */ e5NNNullable) → dynamic {
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
e1numNullableNN = null; // Error.
^" in null as{TypeError} self::E1<core::num?>% /* erasure=core::num?, declared=! */;
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
e1doubleNN = null; // Error.
^" in null as{TypeError} self::E1<core::double>% /* erasure=core::double, declared=! */;
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2NN = null; // Error.
^" in null as{TypeError} self::E2% /* erasure=core::Object?, declared=! */;
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3NN = null; // Error.
^" in null as{TypeError} self::E3% /* erasure=core::String?, declared=! */;
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4NN = null; // Error.
^" in null as{TypeError} self::E4% /* erasure=core::int, declared=! */;
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
e5NN = null; // Error.
^" in null as{TypeError} self::E5% /* erasure=core::Object?, declared=! */;
e1numNullableNNNullable = null;
@@ -62,57 +62,57 @@ library;
// E5 e5NNR, // Error.
// ^^^^^
//
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1numNullable = e1numNullableNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x1double = e1doubleNNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x2 = e2NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x3 = e3NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x4 = e4NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
// pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object x5 = e5NNN; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
// e1numNullableNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
// e1doubleNN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
// e2NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
// e3NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
// e4NN = null; // Error.
// ^
//
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
// pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
// e5NN = null; // Error.
// ^
//
@@ -216,48 +216,48 @@ static extension-type-member method E5|constructor#(self::E2% /* erasure=core::O
static extension-type-member synthetic method E5|constructor#_#new#tearOff(self::E2% /* erasure=core::Object?, declared=! */ foo) → self::E5% /* erasure=core::Object?, declared=! */
return self::E5|constructor#(foo);
static method testNotNonNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNNN, self::E2% /* erasure=core::Object?, declared=! */ e2NNN, self::E3% /* erasure=core::String?, declared=! */ e3NNN, self::E4% /* erasure=core::int, declared=! */ e4NNN, self::E5% /* erasure=core::Object?, declared=! */ e5NNN) → dynamic {
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object' because 'E1<num?>' is nullable and 'Object' isn't.
core::Object x1numNullable = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:13:26: Error: A value of type 'E1<num?>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1numNullable = e1numNullableNNN; // Error.
^" in let self::E1<core::num?>% /* erasure=core::num?, declared=! */ #t1 = e1numNullableNNN in #t1 == null ?{core::Object} #t1 as{TypeError} core::Object : #t1{core::Object};
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object' because 'E1<double>' is nullable and 'Object' isn't.
core::Object x1double = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:14:21: Error: A value of type 'E1<double>' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x1double = e1doubleNNN; // Error.
^" in let self::E1<core::double>% /* erasure=core::double, declared=! */ #t2 = e1doubleNNN in #t2 == null ?{core::Object} #t2 as{TypeError} core::Object : #t2{core::Object};
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object' because 'E2' is nullable and 'Object' isn't.
core::Object x2 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:15:15: Error: A value of type 'E2' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x2 = e2NNN; // Error.
^" in let self::E2% /* erasure=core::Object?, declared=! */ #t3 = e2NNN in #t3 == null ?{core::Object} #t3 as{TypeError} core::Object : #t3{core::Object};
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object' because 'E3' is nullable and 'Object' isn't.
core::Object x3 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:16:15: Error: A value of type 'E3' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x3 = e3NNN; // Error.
^" in let self::E3% /* erasure=core::String?, declared=! */ #t4 = e3NNN in #t4 == null ?{core::Object} #t4 as{TypeError} core::Object : #t4{core::Object};
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object' because 'E4' is nullable and 'Object' isn't.
core::Object x4 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:17:15: Error: A value of type 'E4' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x4 = e4NNN; // Error.
^" in let self::E4% /* erasure=core::int, declared=! */ #t5 = e4NNN in #t5 == null ?{core::Object} #t5 as{TypeError} core::Object : #t5{core::Object};
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object' because 'E5' is nullable and 'Object' isn't.
core::Object x5 = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:18:15: Error: A value of type 'E5' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object x5 = e5NNN; // Error.
^" in let self::E5% /* erasure=core::Object?, declared=! */ #t6 = e5NNN in #t6 == null ?{core::Object} #t6 as{TypeError} core::Object : #t6{core::Object};
}
static method testNotNullable(self::E1<core::num?>% /* erasure=core::num?, declared=! */ e1numNullableNN, self::E1<core::double>% /* erasure=core::double, declared=! */ e1doubleNN, self::E2% /* erasure=core::Object?, declared=! */ e2NN, self::E3% /* erasure=core::String?, declared=! */ e3NN, self::E4% /* erasure=core::int, declared=! */ e4NN, self::E5% /* erasure=core::Object?, declared=! */ e5NN, self::E1<core::num?>? /* erasure=core::num? */ e1numNullableNNNullable, self::E1<core::double>? /* erasure=core::double? */ e1doubleNNNullable, self::E2? /* erasure=core::Object? */ e2NNNullable, self::E3? /* erasure=core::String? */ e3NNNullable, self::E4? /* erasure=core::int? */ e4NNNullable, self::E5? /* erasure=core::Object? */ e5NNNullable) → dynamic {
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: The value 'null' can't be assigned to a variable of type 'E1<num?>' because 'E1<num?>' is not nullable.
e1numNullableNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:26:21: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<num?>'.
e1numNullableNN = null; // Error.
^" in let Null #t7 = null in #t7 == null ?{self::E1<core::num?>% /* erasure=core::num?, declared=! */} #t7 as{TypeError} self::E1<core::num?>% /* erasure=core::num?, declared=! */ : #t7{self::E1<core::num?>% /* erasure=core::num?, declared=! */};
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: The value 'null' can't be assigned to a variable of type 'E1<double>' because 'E1<double>' is not nullable.
e1doubleNN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:27:16: Error: A value of type 'Null' can't be assigned to a variable of type 'E1<double>'.
e1doubleNN = null; // Error.
^" in let Null #t8 = null in #t8 == null ?{self::E1<core::double>% /* erasure=core::double, declared=! */} #t8 as{TypeError} self::E1<core::double>% /* erasure=core::double, declared=! */ : #t8{self::E1<core::double>% /* erasure=core::double, declared=! */};
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: The value 'null' can't be assigned to a variable of type 'E2' because 'E2' is not nullable.
e2NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:28:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E2'.
e2NN = null; // Error.
^" in let Null #t9 = null in #t9 == null ?{self::E2% /* erasure=core::Object?, declared=! */} #t9 as{TypeError} self::E2% /* erasure=core::Object?, declared=! */ : #t9{self::E2% /* erasure=core::Object?, declared=! */};
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: The value 'null' can't be assigned to a variable of type 'E3' because 'E3' is not nullable.
e3NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:29:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E3'.
e3NN = null; // Error.
^" in let Null #t10 = null in #t10 == null ?{self::E3% /* erasure=core::String?, declared=! */} #t10 as{TypeError} self::E3% /* erasure=core::String?, declared=! */ : #t10{self::E3% /* erasure=core::String?, declared=! */};
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: The value 'null' can't be assigned to a variable of type 'E4' because 'E4' is not nullable.
e4NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:30:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E4'.
e4NN = null; // Error.
^" in let Null #t11 = null in #t11 == null ?{self::E4% /* erasure=core::int, declared=! */} #t11 as{TypeError} self::E4% /* erasure=core::int, declared=! */ : #t11{self::E4% /* erasure=core::int, declared=! */};
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: The value 'null' can't be assigned to a variable of type 'E5' because 'E5' is not nullable.
e5NN = invalid-expression "pkg/front_end/testcases/extension_types/nullability.dart:31:10: Error: A value of type 'Null' can't be assigned to a variable of type 'E5'.
e5NN = null; // Error.
^" in let Null #t12 = null in #t12 == null ?{self::E5% /* erasure=core::Object?, declared=! */} #t12 as{TypeError} self::E5% /* erasure=core::Object?, declared=! */ : #t12{self::E5% /* erasure=core::Object?, declared=! */};
e1numNullableNNNullable = null;
@@ -14,17 +14,17 @@ library;
// structB.property = struct.property; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
// - 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new Struct().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
// - 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructA().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
// - 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructB().property = null; // error
// ^
@@ -149,15 +149,15 @@ static method errors() → dynamic {
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
structB.property = struct.property; // error
^" in self::Extension|get#property<self::Struct?>(struct) as{TypeError} self::StructB?);
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
- 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new Struct().property = null; // error
^" in null as{TypeError} self::Struct);
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
- 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructA().property = null; // error
^" in null as{TypeError} self::StructA);
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructB().property = null; // error
^" in null as{TypeError} self::StructB);
@@ -14,17 +14,17 @@ library;
// structB.property = struct.property; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
// - 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new Struct().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
// - 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructA().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
// - 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructB().property = null; // error
// ^
@@ -149,15 +149,15 @@ static method errors() → dynamic {
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
structB.property = struct.property; // error
^" in self::Extension|get#property<self::Struct?>(struct) as{TypeError} self::StructB?);
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
- 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new Struct().property = null; // error
^" in null as{TypeError} self::Struct);
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
- 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructA().property = null; // error
^" in null as{TypeError} self::StructA);
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructB().property = null; // error
^" in null as{TypeError} self::StructB);
@@ -14,17 +14,17 @@ library;
// structB.property = struct.property; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
// - 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new Struct().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
// - 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructA().property = null; // error
// ^
//
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
// pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
// - 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
// new StructB().property = null; // error
// ^
@@ -149,15 +149,15 @@ static method errors() → dynamic {
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
structB.property = struct.property; // error
^" in self::Extension|get#property<self::Struct?>(struct) as{TypeError} self::StructB?);
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: The value 'null' can't be assigned to a variable of type 'Struct' because 'Struct' is not nullable.
self::Extension|set#property<self::Struct>(new self::Struct::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:52:27: Error: A value of type 'Null' can't be assigned to a variable of type 'Struct'.
- 'Struct' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new Struct().property = null; // error
^" in let Null #t1 = null in #t1 == null ?{self::Struct} #t1 as{TypeError} self::Struct : #t1{self::Struct});
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: The value 'null' can't be assigned to a variable of type 'StructA' because 'StructA' is not nullable.
self::Extension|set#property<self::StructA>(new self::StructA::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:53:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructA'.
- 'StructA' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructA().property = null; // error
^" in let Null #t2 = null in #t2 == null ?{self::StructA} #t2 as{TypeError} self::StructA : #t2{self::StructA});
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: The value 'null' can't be assigned to a variable of type 'StructB' because 'StructB' is not nullable.
self::Extension|set#property<self::StructB>(new self::StructB::•(), invalid-expression "pkg/front_end/testcases/extensions/on_type_variable_inference.dart:54:28: Error: A value of type 'Null' can't be assigned to a variable of type 'StructB'.
- 'StructB' is from 'pkg/front_end/testcases/extensions/on_type_variable_inference.dart'.
new StructB().property = null; // error
^" in let Null #t3 = null in #t3 == null ?{self::StructB} #t3 as{TypeError} self::StructB : #t3{self::StructB});
@@ -182,12 +182,12 @@ library;
// Object foo() {}
// ^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
// - 'Object' is from 'dart:core'.
// Object get foo => null;
// ^
//
// pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
// - 'Object' is from 'dart:core'.
// Object get foo => null;
// ^
@@ -315,7 +315,7 @@ class G extends core::Object {
: super core::Object::•()
;
get foo() → core::Object
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
- 'Object' is from 'dart:core'.
Object get foo => null;
^" in null as{TypeError} core::Object;
@@ -330,7 +330,7 @@ class Bar extends core::Object {
: super core::Object::•()
;
get foo() → core::Object
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
- 'Object' is from 'dart:core'.
Object get foo => null;
^" in null as{TypeError} core::Object;
@@ -182,12 +182,12 @@ library;
// Object foo() {}
// ^^^
//
// pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
// - 'Object' is from 'dart:core'.
// Object get foo => null;
// ^
//
// pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
// pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
// - 'Object' is from 'dart:core'.
// Object get foo => null;
// ^
@@ -315,7 +315,7 @@ class G extends core::Object {
: super core::Object::•()
;
get foo() → core::Object
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:79:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
- 'Object' is from 'dart:core'.
Object get foo => null;
^" in null as{TypeError} core::Object;
@@ -330,7 +330,7 @@ class Bar extends core::Object {
: super core::Object::•()
;
get foo() → core::Object
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: The value 'null' can't be returned from a function with return type 'Object' because 'Object' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/abstract_members.dart:87:21: Error: A value of type 'Null' can't be returned from a function with return type 'Object'.
- 'Object' is from 'dart:core'.
Object get foo => null;
^" in null as{TypeError} core::Object;
@@ -7,12 +7,12 @@ library;
// C._circular(this.f);
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var x = new C._circular(null);
// ^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var f = new C._circular(null);
// ^
@@ -21,7 +21,7 @@ import self as self;
import "dart:core" as core;
class C extends core::Object {
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var f = new C._circular(null);
^" in null as{TypeError} self::C);
@@ -29,7 +29,7 @@ class C extends core::Object {
: self::C::f = f, super core::Object::•()
;
}
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var x = new C._circular(null);
^" in null as{TypeError} self::C);
@@ -7,12 +7,12 @@ library;
// C._circular(this.f);
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var x = new C._circular(null);
// ^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var f = new C._circular(null);
// ^
@@ -21,7 +21,7 @@ import self as self;
import "dart:core" as core;
class C extends core::Object {
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var f = new C._circular(null);
^" in null as{TypeError} self::C);
@@ -29,7 +29,7 @@ class C extends core::Object {
: self::C::f = f, super core::Object::•()
;
}
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var x = new C._circular(null);
^" in null as{TypeError} self::C);
@@ -7,7 +7,7 @@ library;
// C._circular(this.f);
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var x = new C._circular(null);
// ^
@@ -7,12 +7,12 @@ library;
// C._circular(this.f);
// ^^^^^^^^^^^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var x = new C._circular(null);
// ^
//
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
// pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
// - 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
// var f = new C._circular(null);
// ^
@@ -21,7 +21,7 @@ import self as self;
import "dart:core" as core;
class C extends core::Object {
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
field self::C f = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:14:27: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var f = new C._circular(null);
^" in let Null #t1 = null in #t1 == null ?{self::C} #t1 as{TypeError} self::C : #t1{self::C});
@@ -29,7 +29,7 @@ class C extends core::Object {
: self::C::f = f, super core::Object::•()
;
}
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The value 'null' can't be assigned to the parameter type 'C' because 'C' is not nullable.
static field self::C x = new self::C::_circular(invalid-expression "pkg/front_end/testcases/general/circularity-via-initializing-formal.dart:11:25: Error: The argument type 'Null' can't be assigned to the parameter type 'C'.
- 'C' is from 'pkg/front_end/testcases/general/circularity-via-initializing-formal.dart'.
var x = new C._circular(null);
^" in let Null #t2 = null in #t2 == null ?{self::C} #t2 as{TypeError} self::C : #t2{self::C});
@@ -47,19 +47,19 @@ library;
// final z1 = y;
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
// const String.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// const int.fromEnvironment("bar", defaultValue: null);
// ^
//
@@ -288,65 +288,65 @@ class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ {
}
static const field core::bool barFromEnv = #C1;
static const field core::bool hasBarEnv = #C1;
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull3 = #C2;
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvString = #C3;
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvOrActualString = #C4;
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvBool = #C1;
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvOrActualBool = #C2;
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvInt = #C5;
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
const int.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvOrActualInt = #C6;
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool bazFromEnv = #C1;
@@ -47,19 +47,19 @@ library;
// final z1 = y;
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
// const String.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// const int.fromEnvironment("bar", defaultValue: null);
// ^
//
@@ -288,65 +288,65 @@ class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ {
}
static const field core::bool barFromEnv = #C1;
static const field core::bool hasBarEnv = #C1;
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull3 = #C2;
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvString = #C3;
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvOrActualString = #C4;
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvBool = #C1;
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvOrActualBool = #C2;
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvInt = #C5;
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
const int.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvOrActualInt = #C6;
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool bazFromEnv = #C1;
@@ -47,19 +47,19 @@ library;
// final z1 = y;
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
// const String.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// const int.fromEnvironment("bar", defaultValue: null);
// ^
//
@@ -172,7 +172,7 @@ class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ {
}
static const field core::bool barFromEnv = const core::bool::fromEnvironment("bar");
static const field core::bool hasBarEnv = const core::bool::hasEnvironment("bar");
static const field core::bool barFromEnvOrNull = const core::bool::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNull = const core::bool::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^" in null as{TypeError} core::bool);
static const field core::bool notBarFromEnvOrNull = !self::barFromEnvOrNull;
@@ -188,19 +188,19 @@ static const field core::bool orOnNull2 = self::barFromEnvOrNull || false;
static const field core::bool orOnNull3 = true || self::barFromEnvOrNull;
static const field core::bool orOnNull4 = false || self::barFromEnvOrNull;
static const field core::String barFromEnvString = const core::String::fromEnvironment("bar");
static const field core::String barFromEnvOrNullString = const core::String::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String barFromEnvOrNullString = const core::String::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^" in null as{TypeError} core::String);
static const field core::String barFromEnvOrActualString = const core::String::fromEnvironment("bar", defaultValue: "hello");
static const field core::String nullFromEnvString = const core::String::fromEnvironment(self::barFromEnvOrNullString);
static const field core::bool barFromEnvBool = const core::bool::fromEnvironment("bar");
static const field core::bool barFromEnvOrNullBool = const core::bool::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNullBool = const core::bool::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^" in null as{TypeError} core::bool);
static const field core::bool barFromEnvOrActualBool = const core::bool::fromEnvironment("bar", defaultValue: true);
static const field core::bool nullFromEnvBool = const core::bool::fromEnvironment(self::barFromEnvOrNullString);
static const field core::int barFromEnvInt = const core::int::fromEnvironment("bar");
static const field core::int barFromEnvOrNullInt = const core::int::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static const field core::int barFromEnvOrNullInt = const core::int::fromEnvironment("bar", defaultValue: invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
const int.fromEnvironment(\"bar\", defaultValue: null);
^" in null as{TypeError} core::int);
static const field core::int barFromEnvOrActualInt = const core::int::fromEnvironment("bar", defaultValue: 42);
@@ -47,19 +47,19 @@ library;
// final z1 = y;
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
// const String.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
// const bool.fromEnvironment("bar", defaultValue: null);
// ^
//
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// const int.fromEnvironment("bar", defaultValue: null);
// ^
//
@@ -288,65 +288,65 @@ class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ {
}
static const field core::bool barFromEnv = #C1;
static const field core::bool hasBarEnv = #C1;
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool notBarFromEnvOrNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool conditionalOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullTrue = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool nullAwareOnNullFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnFalse2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool andOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool orOnNull3 = #C2;
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool orOnNull4 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:9:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvString = #C3;
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String barFromEnvOrNullString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::String barFromEnvOrActualString = #C4;
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::String nullFromEnvString = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvBool = #C1;
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The value 'null' can't be assigned to the parameter type 'bool' because 'bool' is not nullable.
static const field core::bool barFromEnvOrNullBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:33:49: Error: The argument type 'Null' can't be assigned to the parameter type 'bool'.
const bool.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool barFromEnvOrActualBool = #C2;
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::bool nullFromEnvBool = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvInt = #C5;
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static const field core::int barFromEnvOrNullInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:40:48: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
const int.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::int barFromEnvOrActualInt = #C6;
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The value 'null' can't be assigned to the parameter type 'String' because 'String' is not nullable.
static const field core::int nullFromEnvInt = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:25:51: Error: The argument type 'Null' can't be assigned to the parameter type 'String'.
const String.fromEnvironment(\"bar\", defaultValue: null);
^";
static const field core::bool bazFromEnv = #C1;
@@ -228,7 +228,7 @@ library;
// S field14;
// ^
//
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
// var field13 = null; // error
// ^
//
@@ -317,7 +317,7 @@ class D<T extends core::Object? = dynamic> extends core::Object implements self:
covariant-by-class field self::D::T% field10;
covariant-by-class field self::D::T% field11;
covariant-by-class field self::D::T% field12;
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
var field13 = null; // error
^" in null as{TypeError} Never;
covariant-by-class field self::D::T% field14;
@@ -228,7 +228,7 @@ library;
// S field14;
// ^
//
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
// var field13 = null; // error
// ^
//
@@ -317,7 +317,7 @@ class D<T extends core::Object? = dynamic> extends core::Object implements self:
covariant-by-class field self::D::T% field10;
covariant-by-class field self::D::T% field11;
covariant-by-class field self::D::T% field12;
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
var field13 = null; // error
^" in null as{TypeError} Never;
covariant-by-class field self::D::T% field14;
@@ -228,7 +228,7 @@ library;
// S field14;
// ^
//
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
// pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
// var field13 = null; // error
// ^
//
@@ -317,7 +317,7 @@ class D<T extends core::Object? = dynamic> extends core::Object implements self:
covariant-by-class field self::D::T% field10;
covariant-by-class field self::D::T% field11;
covariant-by-class field self::D::T% field12;
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: The value 'null' can't be assigned to a variable of type 'T' because 'T' is not nullable.
covariant-by-class field self::D::T% field13 = invalid-expression "pkg/front_end/testcases/general/infer_field_from_multiple.dart:105:17: Error: A value of type 'Null' can't be assigned to a variable of type 'T'.
var field13 = null; // error
^" in let Null #t1 = null in #t1 == null ?{Never} #t1 as{TypeError} Never : #t1{Never};
covariant-by-class field self::D::T% field14;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// Iterable takesNoArg() => null;
// ^
@@ -34,7 +34,7 @@ import self as self;
import "dart:core" as core;
static method takesNoArg() → core::Iterable<dynamic>
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
Iterable takesNoArg() => null;
^" in null as{TypeError} core::Iterable<dynamic>;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// Iterable takesNoArg() => null;
// ^
@@ -34,7 +34,7 @@ import self as self;
import "dart:core" as core;
static method takesNoArg() → core::Iterable<dynamic>
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
Iterable takesNoArg() => null;
^" in null as{TypeError} core::Iterable<dynamic>;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
// pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// Iterable takesNoArg() => null;
// ^
@@ -34,7 +34,7 @@ import self as self;
import "dart:core" as core;
static method takesNoArg() → core::Iterable<dynamic>
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: The value 'null' can't be returned from a function with return type 'Iterable<dynamic>' because 'Iterable<dynamic>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:5:26: Error: A value of type 'Null' can't be returned from a function with return type 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
Iterable takesNoArg() => null;
^" in let Null #t1 = null in #t1 == null ?{core::Iterable<dynamic>} #t1 as{TypeError} core::Iterable<dynamic> : #t1{core::Iterable<dynamic>};
@@ -6,7 +6,7 @@ library;
// static Generic<A> field = null;
// ^
//
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
// - 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
// static Generic<A> field = null;
// ^
@@ -22,7 +22,7 @@ class Generic<A extends core::Object? = dynamic> extends core::Object {
extension Extension<A extends core::Object? = dynamic> on self::Generic<A%> {
static field field = self::Extension|field;
}
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
- 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
static Generic<A> field = null;
^" in null as{TypeError} self::Generic<invalid-type>;
@@ -6,7 +6,7 @@ library;
// static Generic<A> field = null;
// ^
//
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
// - 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
// static Generic<A> field = null;
// ^
@@ -22,7 +22,7 @@ class Generic<A extends core::Object? = dynamic> extends core::Object {
extension Extension<A extends core::Object? = dynamic> on self::Generic<A%> {
static field field = self::Extension|field;
}
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
- 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
static Generic<A> field = null;
^" in null as{TypeError} self::Generic<invalid-type>;
@@ -6,7 +6,7 @@ library;
// static Generic<A> field = null;
// ^
//
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
// pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
// - 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
// static Generic<A> field = null;
// ^
@@ -22,7 +22,7 @@ class Generic<A extends core::Object? = dynamic> extends core::Object {
extension Extension<A extends core::Object? = dynamic> on self::Generic<A%> {
static field field = self::Extension|field;
}
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: The value 'null' can't be assigned to a variable of type 'Generic<invalid-type>' because 'Generic<invalid-type>' is not nullable.
static field self::Generic<invalid-type> Extension|field = invalid-expression "pkg/front_end/testcases/general/issue43400.dart:8:29: Error: A value of type 'Null' can't be assigned to a variable of type 'Generic<invalid-type>'.
- 'Generic' is from 'pkg/front_end/testcases/general/issue43400.dart'.
static Generic<A> field = null;
^" in let Null #t1 = null in #t1 == null ?{self::Generic<invalid-type>} #t1 as{TypeError} self::Generic<invalid-type> : #t1{self::Generic<invalid-type>};
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
// if (string?.isNotEmpty) ;
// ^
//
@@ -11,7 +11,7 @@ import "dart:core" as core;
static method test2() → void {
has-declared-initializer core::String? string = null;
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
if (string?.isNotEmpty) ;
^" in (let final core::String? #t1 = string in #t1 == null ?{core::bool?} null : #t1{core::String}.{core::String::isNotEmpty}{core::bool}) as{TypeError} core::bool)
;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
// if (string?.isNotEmpty) ;
// ^
//
@@ -11,7 +11,7 @@ import "dart:core" as core;
static method test2() → void {
has-declared-initializer core::String? string = null;
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
if (string?.isNotEmpty) ;
^" in (let final core::String? #t1 = string in #t1 == null ?{core::bool?} null : #t1{core::String}.{core::String::isNotEmpty}{core::bool}) as{TypeError} core::bool)
;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
// pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
// if (string?.isNotEmpty) ;
// ^
//
@@ -11,7 +11,7 @@ import "dart:core" as core;
static method test2() → void {
has-declared-initializer core::String? string = null;
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
if(invalid-expression "pkg/front_end/testcases/general/issue44654.dart:7:7: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool'.
if (string?.isNotEmpty) ;
^" in let core::bool? #t1 = let final core::String? #t2 = string in #t2 == null ?{core::bool?} null : #t2{core::String}.{core::String::isNotEmpty}{core::bool} in #t1 == null ?{core::bool} #t1 as{TypeError} core::bool : #t1{core::bool})
;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
// extendsNumReturnArg/*<Null>*/(null);
// ^
//
@@ -15,7 +15,7 @@ import "dart:core" as core;
static field <T extends core::num = dynamic>(T) → T extendsNumReturnArg = <S extends core::num>(S s) → S => s;
static method functionInvocations() → dynamic {
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
extendsNumReturnArg/*<Null>*/(null);
^" in null as{TypeError} core::num){(core::num) → core::num};
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:9:35: Error: The argument type 'String' can't be assigned to the parameter type 'num'.
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
// extendsNumReturnArg/*<Null>*/(null);
// ^
//
@@ -15,7 +15,7 @@ import "dart:core" as core;
static field <T extends core::num = dynamic>(T) → T extendsNumReturnArg = <S extends core::num>(S s) → S => s;
static method functionInvocations() → dynamic {
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
extendsNumReturnArg/*<Null>*/(null);
^" in null as{TypeError} core::num){(core::num) → core::num};
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:9:35: Error: The argument type 'String' can't be assigned to the parameter type 'num'.
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
// pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
// extendsNumReturnArg/*<Null>*/(null);
// ^
//
@@ -15,7 +15,7 @@ import "dart:core" as core;
static field <T extends core::num = dynamic>(T) → T extendsNumReturnArg = <S extends core::num>(S s) → S => s;
static method functionInvocations() → dynamic {
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The value 'null' can't be assigned to the parameter type 'num' because 'num' is not nullable.
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:8:33: Error: The argument type 'Null' can't be assigned to the parameter type 'num'.
extendsNumReturnArg/*<Null>*/(null);
^" in let Null #t1 = null in #t1 == null ?{core::num} #t1 as{TypeError} core::num : #t1{core::num}){(core::num) → core::num};
self::extendsNumReturnArg<core::num>(invalid-expression "pkg/front_end/testcases/general/issue45660.dart:9:35: Error: The argument type 'String' can't be assigned to the parameter type 'num'.
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// String debugName = Isolate.current.debugName; // error
// ^
//
@@ -16,7 +16,7 @@ static method main() → void {
core::String debugName = let final core::String? #t1 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t1 == null ?{core::String} "" : #t1{core::String};
}
static method test() → void {
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
String debugName = Isolate.current.debugName; // error
^" in iso::Isolate::current.{iso::Isolate::debugName}{core::String?} as{TypeError} core::String;
}
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// String debugName = Isolate.current.debugName; // error
// ^
//
@@ -16,7 +16,7 @@ static method main() → void {
core::String debugName = let final core::String? #t1 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t1 == null ?{core::String} "" : #t1{core::String};
}
static method test() → void {
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
String debugName = Isolate.current.debugName; // error
^" in iso::Isolate::current.{iso::Isolate::debugName}{core::String?} as{TypeError} core::String;
}
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// String debugName = Isolate.current.debugName; // error
// ^
//
@@ -16,7 +16,7 @@ static method main() → void {
core::String debugName = let final core::String? #t1 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t1 == null ?{core::String} "" : #t1{core::String};
}
static method test() → void {
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
String debugName = Isolate.current.debugName; // error
^" in let core::String? #t2 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t2 == null ?{core::String} #t2 as{TypeError} core::String : #t2{core::String};
}
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = first.first; // Error.
// ^
@@ -16,7 +16,7 @@ class WeakMap<K extends core::Object, V extends core::Object? = dynamic> extends
core::Iterable<core::List<core::Object?>> mapped = entries.{core::Iterable::map}<core::List<core::Object?>>(((self::WeakMap::K, self::WeakMap::V%) i) → core::List<core::Object?> => <core::Object?>[i.$1{self::WeakMap::K}, i.$2{self::WeakMap::V%}]){(((self::WeakMap::K, self::WeakMap::V%)) → core::List<core::Object?>) → core::Iterable<core::List<core::Object?>>};
core::List<core::Object?> first = mapped.{core::Iterable::first}{core::List<core::Object?>};
first.{core::List::add}(null){(core::Object?) → void};
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = first.first; // Error.
^" in first.{core::Iterable::first}{core::Object?} as{TypeError} core::Object;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = first.first; // Error.
// ^
@@ -16,7 +16,7 @@ class WeakMap<K extends core::Object, V extends core::Object? = dynamic> extends
core::Iterable<core::List<core::Object?>> mapped = entries.{core::Iterable::map}<core::List<core::Object?>>(((self::WeakMap::K, self::WeakMap::V%) i) → core::List<core::Object?> => <core::Object?>[i.$1{self::WeakMap::K}, i.$2{self::WeakMap::V%}]){(((self::WeakMap::K, self::WeakMap::V%)) → core::List<core::Object?>) → core::Iterable<core::List<core::Object?>>};
core::List<core::Object?> first = mapped.{core::Iterable::first}{core::List<core::Object?>};
first.{core::List::add}(null){(core::Object?) → void};
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = first.first; // Error.
^" in first.{core::Iterable::first}{core::Object?} as{TypeError} core::Object;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = first.first; // Error.
// ^
@@ -16,7 +16,7 @@ class WeakMap<K extends core::Object, V extends core::Object? = dynamic> extends
core::Iterable<core::List<core::Object?>> mapped = entries.{core::Iterable::map}<core::List<core::Object?>>(((self::WeakMap::K, self::WeakMap::V%) i) → core::List<core::Object?> => core::_GrowableList::_literal2<core::Object?>(i.$1{self::WeakMap::K}, i.$2{self::WeakMap::V%})){(((self::WeakMap::K, self::WeakMap::V%)) → core::List<core::Object?>) → core::Iterable<core::List<core::Object?>>};
core::List<core::Object?> first = mapped.{core::Iterable::first}{core::List<core::Object?>};
first.{core::List::add}(null){(core::Object?) → void};
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/general/issue52726.dart:10:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = first.first; // Error.
^" in let core::Object? #t1 = first.{core::Iterable::first}{core::Object?} in #t1 == null ?{core::Object} #t1 as{TypeError} core::Object : #t1{core::Object};
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
// - 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
// F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
// ^
@@ -125,7 +125,7 @@ static method testTypeAliasAsTypeArgument(self::Acov<() → dynamic, dynamic> so
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void fsource1 = self::toF<self::Acov<() → dynamic, dynamic>>(source1);
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void target1 = fsource1;
<Y extends self::Acon<(Never) → dynamic, dynamic> = dynamic>() → void fsource2 = self::toF<self::Acon<(Never) → dynamic, dynamic>>(source2);
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
- 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
^" in fsource2 as{TypeError} <Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
// - 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
// F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
// ^
@@ -125,7 +125,7 @@ static method testTypeAliasAsTypeArgument(self::Acov<() → dynamic, dynamic> so
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void fsource1 = self::toF<self::Acov<() → dynamic, dynamic>>(source1);
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void target1 = fsource1;
<Y extends self::Acon<(Never) → dynamic, dynamic> = dynamic>() → void fsource2 = self::toF<self::Acon<(Never) → dynamic, dynamic>>(source2);
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
- 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
^" in fsource2 as{TypeError} <Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
// pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
// - 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
// F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
// ^
@@ -125,7 +125,7 @@ static method testTypeAliasAsTypeArgument(self::Acov<() → dynamic, dynamic> so
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void fsource1 = self::toF<self::Acov<() → dynamic, dynamic>>(source1);
<Y extends self::Acov<() → dynamic, dynamic> = dynamic>() → void target1 = fsource1;
<Y extends self::Acon<(Never) → dynamic, dynamic> = dynamic>() → void fsource2 = self::toF<self::Acon<(Never) → dynamic, dynamic>>(source2);
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()' because 'Null' is nullable and 'Never' isn't.
<Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void target2 = invalid-expression "pkg/front_end/testcases/general/nested_variance.dart:84:42: Error: A value of type 'void Function<Y extends Acon<dynamic Function(Never), dynamic>>()' can't be assigned to a variable of type 'void Function<Y extends Acon<dynamic Function(Null), dynamic>>()'.
- 'Acon' is from 'pkg/front_end/testcases/general/nested_variance.dart'.
F<Acon<Fcon<Null>, dynamic>> target2 = fsource2;
^" in fsource2 as{TypeError} <Y extends self::Acon<(Null) → dynamic, dynamic> = dynamic>() → void;
@@ -421,7 +421,7 @@ library;
// void fun<U extends T>() {}
// ^
//
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
// - 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
// factory Mixin.fact(T t) => null;
// ^
@@ -550,7 +550,7 @@ abstract class Mixin<T extends core::Object? = dynamic> extends core::Object /*i
: super core::Object::•()
;
static factory fact<T extends core::Object? = dynamic>(self::Mixin::fact::T% t) → self::Mixin<self::Mixin::fact::T%>
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
- 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
factory Mixin.fact(T t) => null;
^" in null as{TypeError} Never;
@@ -421,7 +421,7 @@ library;
// void fun<U extends T>() {}
// ^
//
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
// - 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
// factory Mixin.fact(T t) => null;
// ^
@@ -550,7 +550,7 @@ abstract class Mixin<T extends core::Object? = dynamic> extends core::Object /*i
: super core::Object::•()
;
static factory fact<T extends core::Object? = dynamic>(self::Mixin::fact::T% t) → self::Mixin<self::Mixin::fact::T%>
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
- 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
factory Mixin.fact(T t) => null;
^" in null as{TypeError} Never;
@@ -421,7 +421,7 @@ library;
// void fun<U extends T>() {}
// ^
//
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
// pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
// - 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
// factory Mixin.fact(T t) => null;
// ^
@@ -550,7 +550,7 @@ abstract class Mixin<T extends core::Object? = dynamic> extends core::Object /*i
: super core::Object::•()
;
static factory fact<T extends core::Object? = dynamic>(self::Mixin::fact::T% t) → self::Mixin<self::Mixin::fact::T%>
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: The value 'null' can't be returned from a function with return type 'Mixin<T>' because 'Mixin<T>' is not nullable.
return invalid-expression "pkg/front_end/testcases/general/type_variable_in_static_context.dart:132:30: Error: A value of type 'Null' can't be returned from a function with return type 'Mixin<T>'.
- 'Mixin' is from 'pkg/front_end/testcases/general/type_variable_in_static_context.dart'.
factory Mixin.fact(T t) => null;
^" in let Null #t1 = null in #t1 == null ?{Never} #t1 as{TypeError} Never : #t1{Never};
@@ -7,12 +7,12 @@ library from "package:bar/bar.dart" as bar {
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.
// int y = null;
// ^
//
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
}
library from "package:baz/main.dart" as main {
@@ -32,10 +32,10 @@ library from "package:foo/foo.dart" as foo {
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// org-dartlang-test:///foo/lib/foo.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.
// int x = null;
// ^
//
static field dart.core::int x = invalid-expression "org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint x = null;\n ^" in let Null #t2 = null in #t2 == null ?{dart.core::int} #t2 as{TypeError} dart.core::int : #t2{dart.core::int};
static field dart.core::int x = invalid-expression "org-dartlang-test:///foo/lib/foo.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.\nint x = null;\n ^" in let Null #t2 = null in #t2 == null ?{dart.core::int} #t2 as{TypeError} dart.core::int : #t2{dart.core::int};
}
@@ -7,12 +7,12 @@ library from "package:bar/bar.dart" as bar {
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.
// int y = null;
// ^
//
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
}
library from "package:baz/main.dart" as main {
@@ -33,10 +33,10 @@ library from "package:foo/foo.dart" as foo {
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// org-dartlang-test:///foo/lib/foo.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.
// int x = null;
// ^
//
static field dart.core::int x = invalid-expression "org-dartlang-test:///foo/lib/foo.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint x = null;\n ^" in let Null #t2 = null in #t2 == null ?{dart.core::int} #t2 as{TypeError} dart.core::int : #t2{dart.core::int};
static field dart.core::int x = invalid-expression "org-dartlang-test:///foo/lib/foo.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.\nint x = null;\n ^" in let Null #t2 = null in #t2 == null ?{dart.core::int} #t2 as{TypeError} dart.core::int : #t2{dart.core::int};
}
@@ -7,12 +7,12 @@ library from "package:bar/bar.dart" as bar {
// // This file is in weak mode.
// ^
//
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.
// org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.
// int y = null;
// ^
//
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
static field dart.core::int y = invalid-expression "org-dartlang-test:///bar/lib/bar.dart:2:9: Error: A value of type 'Null' can't be assigned to a variable of type 'int'.\nint y = null;\n ^" in let Null #t1 = null in #t1 == null ?{dart.core::int} #t1 as{TypeError} dart.core::int : #t1{dart.core::int};
}
library from "package:baz/main.dart" as main {
@@ -6,7 +6,7 @@ library test;
// s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
// ^
//
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// s = new B(). /*@target=B.z*/ z;
// ^
//
@@ -46,7 +46,7 @@ static method foo() → dynamic {
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
^" in new self::B::•().{self::B::y}{core::int} as{TypeError} core::String;
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
s = new B(). /*@target=B.z*/ z;
^" in new self::B::•().{self::B::z}{core::String?} as{TypeError} core::String;
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:25:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
@@ -6,7 +6,7 @@ library test;
// s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
// ^
//
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// s = new B(). /*@target=B.z*/ z;
// ^
//
@@ -46,7 +46,7 @@ static method foo() → dynamic {
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
^" in new self::B::•().{self::B::y}{core::int} as{TypeError} core::String;
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
s = new B(). /*@target=B.z*/ z;
^" in new self::B::•().{self::B::z}{core::String?} as{TypeError} core::String;
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:25:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
@@ -6,7 +6,7 @@ library test;
// s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
// ^
//
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
// s = new B(). /*@target=B.z*/ z;
// ^
//
@@ -46,7 +46,7 @@ static method foo() → dynamic {
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y;
^" in new self::B::•().{self::B::y}{core::int} as{TypeError} core::String;
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:24:32: Error: A value of type 'String?' can't be assigned to a variable of type 'String'.
s = new B(). /*@target=B.z*/ z;
^" in let core::String? #t1 = new self::B::•().{self::B::z}{core::String?} in #t1 == null ?{core::String} #t1 as{TypeError} core::String : #t1{core::String};
s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:25:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'.
@@ -7,7 +7,7 @@ library test;
// var x = /*@returnType=() -> invalid-type*/ () => f() ? y : z;
// ^
//
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
// bool f() => null;
// ^
//
@@ -18,7 +18,7 @@ static field invalid-type x = () → () → invalid-type => self::f() ?{() → i
static field () → invalid-type y = () → invalid-type => self::x;
static field () → invalid-type z = () → invalid-type => self::x;
static method f() → core::bool
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
bool f() => null;
^" in null as{TypeError} core::bool;
static method main() → dynamic {}
@@ -7,7 +7,7 @@ library test;
// var x = /*@returnType=() -> invalid-type*/ () => f() ? y : z;
// ^
//
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
// bool f() => null;
// ^
//
@@ -18,7 +18,7 @@ static field invalid-type x = () → () → invalid-type => self::f() ?{() → i
static field () → invalid-type y = () → invalid-type => self::x;
static field () → invalid-type z = () → invalid-type => self::x;
static method f() → core::bool
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
bool f() => null;
^" in null as{TypeError} core::bool;
static method main() → dynamic {}
@@ -7,7 +7,7 @@ library test;
// var x = /*@returnType=() -> invalid-type*/ () => f() ? y : z;
// ^
//
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
// pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
// bool f() => null;
// ^
//
@@ -18,7 +18,7 @@ static field invalid-type x = () → () → invalid-type => self::f() ?{() → i
static field () → invalid-type y = () → invalid-type => self::x;
static field () → invalid-type z = () → invalid-type => self::x;
static method f() → core::bool
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: The value 'null' can't be returned from a function with return type 'bool' because 'bool' is not nullable.
return invalid-expression "pkg/front_end/testcases/inference_new/strongly_connected_component.dart:8:13: Error: A value of type 'Null' can't be returned from a function with return type 'bool'.
bool f() => null;
^" in let Null #t1 = null in #t1 == null ?{core::bool} #t1 as{TypeError} core::bool : #t1{core::bool};
static method main() → dynamic {}
@@ -2,69 +2,69 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object objectVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
// - 'Function' is from 'dart:core'.
// - 'Object' is from 'dart:core'.
// objectVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// - 'Object' is from 'dart:core'.
// objectVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullNullableArg;
// ^
@@ -79,15 +79,15 @@ library;
// numVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
// numVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
// numVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
// numVar = doubleNullableArg;
// ^
//
@@ -169,7 +169,7 @@ library;
// intVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// intVar = intNullableArg;
// ^
//
@@ -267,7 +267,7 @@ library;
// doubleVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
// doubleVar = doubleNullableArg;
// ^
//
@@ -373,12 +373,12 @@ library;
// functionVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = toVoidNullableArg;
// ^
@@ -471,7 +471,7 @@ library;
// toVoidVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
// toVoidVar = toVoidNullableArg;
// ^
//
@@ -575,7 +575,7 @@ library;
// tearoffableVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// tearoffableVar = tearoffableNullableArg;
// ^
@@ -682,7 +682,7 @@ library;
// xNonNullVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = xNonNullNullableArg;
// ^
//
@@ -694,7 +694,7 @@ library;
// xNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = yNonNullNullableArg;
// ^
//
@@ -776,7 +776,7 @@ library;
// xPotentiallyNullVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = xPotentiallyNullNullableArg;
// ^
//
@@ -788,7 +788,7 @@ library;
// xPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -870,7 +870,7 @@ library;
// yNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
// yNonNullVar = yNonNullNullableArg;
// ^
//
@@ -968,7 +968,7 @@ library;
// yPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
// yPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -1032,57 +1032,57 @@ static method ok<XnonNull extends core::Object, YnonNull extends self::ok::XnonN
yPotentiallyNullVar = yPotentiallyNullArg;
}
static method error<XnonNull extends core::Object, YnonNull extends self::error::XnonNull = core::Object, XpotentiallyNull extends core::Object?, YpotentiallyNull extends self::error::XpotentiallyNull% = core::Object?>(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic {
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object objectVar = objectNullableArg;
^" in objectNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = numNullableArg;
^" in numNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = intNullableArg;
^" in intNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
- 'Function' is from 'dart:core'.
- 'Object' is from 'dart:core'.
objectVar = functionNullableArg;
^" in functionNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
- 'Object' is from 'dart:core'.
objectVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullArg;
^" in xPotentiallyNullArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullArg;
^" in yPotentiallyNullArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} core::Object;
@@ -1094,13 +1094,13 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Object' is from 'dart:core'.
numVar = objectNullableArg;
^" in objectNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
numVar = numNullableArg;
^" in numNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
numVar = intNullableArg;
^" in intNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
numVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'.
@@ -1163,7 +1163,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'.
intVar = numNullableArg;
^" in numNullableArg as{TypeError} core::int;
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
intVar = intNullableArg;
^" in intNullableArg as{TypeError} core::int;
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'.
@@ -1238,7 +1238,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'.
doubleVar = intNullableArg;
^" in intNullableArg as{TypeError} core::double;
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
doubleVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::double;
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'.
@@ -1321,11 +1321,11 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
functionVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = functionNullableArg;
^" in functionNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} core::Function;
@@ -1398,7 +1398,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
toVoidVar = functionNullableArg;
^" in functionNullableArg as{TypeError} () → void;
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
toVoidVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} () → void;
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value.
@@ -1480,7 +1480,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} self::Tearoffable;
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} self::Tearoffable;
@@ -1564,7 +1564,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
xNonNullVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1573,7 +1573,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1636,7 +1636,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'.
@@ -1645,7 +1645,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'.
@@ -1708,7 +1708,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'.
@@ -1783,7 +1783,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
}
@@ -2,69 +2,69 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object objectVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
// - 'Function' is from 'dart:core'.
// - 'Object' is from 'dart:core'.
// objectVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// - 'Object' is from 'dart:core'.
// objectVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullNullableArg;
// ^
@@ -79,15 +79,15 @@ library;
// numVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
// numVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
// numVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
// numVar = doubleNullableArg;
// ^
//
@@ -169,7 +169,7 @@ library;
// intVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// intVar = intNullableArg;
// ^
//
@@ -267,7 +267,7 @@ library;
// doubleVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
// doubleVar = doubleNullableArg;
// ^
//
@@ -373,12 +373,12 @@ library;
// functionVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = toVoidNullableArg;
// ^
@@ -471,7 +471,7 @@ library;
// toVoidVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
// toVoidVar = toVoidNullableArg;
// ^
//
@@ -575,7 +575,7 @@ library;
// tearoffableVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// tearoffableVar = tearoffableNullableArg;
// ^
@@ -682,7 +682,7 @@ library;
// xNonNullVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = xNonNullNullableArg;
// ^
//
@@ -694,7 +694,7 @@ library;
// xNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = yNonNullNullableArg;
// ^
//
@@ -776,7 +776,7 @@ library;
// xPotentiallyNullVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = xPotentiallyNullNullableArg;
// ^
//
@@ -788,7 +788,7 @@ library;
// xPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -870,7 +870,7 @@ library;
// yNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
// yNonNullVar = yNonNullNullableArg;
// ^
//
@@ -968,7 +968,7 @@ library;
// yPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
// yPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -1032,57 +1032,57 @@ static method ok<XnonNull extends core::Object, YnonNull extends self::ok::XnonN
yPotentiallyNullVar = yPotentiallyNullArg;
}
static method error<XnonNull extends core::Object, YnonNull extends self::error::XnonNull = core::Object, XpotentiallyNull extends core::Object?, YpotentiallyNull extends self::error::XpotentiallyNull% = core::Object?>(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic {
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object objectVar = objectNullableArg;
^" in objectNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = numNullableArg;
^" in numNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = intNullableArg;
^" in intNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
- 'Function' is from 'dart:core'.
- 'Object' is from 'dart:core'.
objectVar = functionNullableArg;
^" in functionNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
- 'Object' is from 'dart:core'.
objectVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullArg;
^" in xPotentiallyNullArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullArg;
^" in yPotentiallyNullArg as{TypeError} core::Object;
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} core::Object;
@@ -1094,13 +1094,13 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Object' is from 'dart:core'.
numVar = objectNullableArg;
^" in objectNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
numVar = numNullableArg;
^" in numNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
numVar = intNullableArg;
^" in intNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
numVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'.
@@ -1163,7 +1163,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'.
intVar = numNullableArg;
^" in numNullableArg as{TypeError} core::int;
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
intVar = intNullableArg;
^" in intNullableArg as{TypeError} core::int;
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'.
@@ -1238,7 +1238,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'.
doubleVar = intNullableArg;
^" in intNullableArg as{TypeError} core::double;
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
doubleVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::double;
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'.
@@ -1321,11 +1321,11 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
functionVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = functionNullableArg;
^" in functionNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} core::Function;
@@ -1398,7 +1398,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
toVoidVar = functionNullableArg;
^" in functionNullableArg as{TypeError} () → void;
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
toVoidVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} () → void;
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value.
@@ -1480,7 +1480,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} self::Tearoffable;
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} self::Tearoffable;
@@ -1564,7 +1564,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
xNonNullVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1573,7 +1573,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1636,7 +1636,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'.
@@ -1645,7 +1645,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'.
@@ -1708,7 +1708,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'.
@@ -1783,7 +1783,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
}
@@ -2,69 +2,69 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object objectVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
// - 'Function' is from 'dart:core'.
// - 'Object' is from 'dart:core'.
// objectVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// - 'Object' is from 'dart:core'.
// objectVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// objectVar = yPotentiallyNullNullableArg;
// ^
@@ -79,15 +79,15 @@ library;
// numVar = objectNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
// numVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
// numVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
// numVar = doubleNullableArg;
// ^
//
@@ -169,7 +169,7 @@ library;
// intVar = numNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// intVar = intNullableArg;
// ^
//
@@ -267,7 +267,7 @@ library;
// doubleVar = intNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
// doubleVar = doubleNullableArg;
// ^
//
@@ -373,12 +373,12 @@ library;
// functionVar = doubleNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
// - 'Function' is from 'dart:core'.
// functionVar = toVoidNullableArg;
// ^
@@ -471,7 +471,7 @@ library;
// toVoidVar = functionNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
// toVoidVar = toVoidNullableArg;
// ^
//
@@ -575,7 +575,7 @@ library;
// tearoffableVar = toVoidNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
// - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
// tearoffableVar = tearoffableNullableArg;
// ^
@@ -682,7 +682,7 @@ library;
// xNonNullVar = tearoffableNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = xNonNullNullableArg;
// ^
//
@@ -694,7 +694,7 @@ library;
// xNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
// xNonNullVar = yNonNullNullableArg;
// ^
//
@@ -776,7 +776,7 @@ library;
// xPotentiallyNullVar = xNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = xPotentiallyNullNullableArg;
// ^
//
@@ -788,7 +788,7 @@ library;
// xPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
// xPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -870,7 +870,7 @@ library;
// yNonNullVar = xPotentiallyNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
// yNonNullVar = yNonNullNullableArg;
// ^
//
@@ -968,7 +968,7 @@ library;
// yPotentiallyNullVar = yNonNullNullableArg;
// ^
//
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
// pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
// yPotentiallyNullVar = yPotentiallyNullNullableArg;
// ^
//
@@ -1032,57 +1032,57 @@ static method ok<XnonNull extends core::Object, YnonNull extends self::ok::XnonN
yPotentiallyNullVar = yPotentiallyNullArg;
}
static method error<XnonNull extends core::Object, YnonNull extends self::error::XnonNull = core::Object, XpotentiallyNull extends core::Object?, YpotentiallyNull extends self::error::XpotentiallyNull% = core::Object?>(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic {
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't.
core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object objectVar = objectNullableArg;
^" in let core::Object? #t4 = objectNullableArg in #t4 == null ?{core::Object} #t4 as{TypeError} core::Object : #t4{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = numNullableArg;
^" in let core::num? #t5 = numNullableArg in #t5 == null ?{core::Object} #t5 as{TypeError} core::Object : #t5{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = intNullableArg;
^" in let core::int? #t6 = intNullableArg in #t6 == null ?{core::Object} #t6 as{TypeError} core::Object : #t6{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = doubleNullableArg;
^" in let core::double? #t7 = doubleNullableArg in #t7 == null ?{core::Object} #t7 as{TypeError} core::Object : #t7{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object'.
- 'Function' is from 'dart:core'.
- 'Object' is from 'dart:core'.
objectVar = functionNullableArg;
^" in let core::Function? #t8 = functionNullableArg in #t8 == null ?{core::Object} #t8 as{TypeError} core::Object : #t8{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = toVoidNullableArg;
^" in let () →? void #t9 = toVoidNullableArg in #t9 == null ?{core::Object} #t9 as{TypeError} core::Object : #t9{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
- 'Object' is from 'dart:core'.
objectVar = tearoffableNullableArg;
^" in let self::Tearoffable? #t10 = tearoffableNullableArg in #t10 == null ?{core::Object} #t10 as{TypeError} core::Object : #t10{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xNonNullNullableArg;
^" in let self::error::XnonNull? #t11 = xNonNullNullableArg in #t11 == null ?{core::Object} #t11 as{TypeError} core::Object : #t11{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullArg;
^" in let self::error::XpotentiallyNull% #t12 = xPotentiallyNullArg in #t12 == null ?{core::Object} #t12 as{TypeError} core::Object : #t12{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = xPotentiallyNullNullableArg;
^" in let self::error::XpotentiallyNull? #t13 = xPotentiallyNullNullableArg in #t13 == null ?{core::Object} #t13 as{TypeError} core::Object : #t13{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yNonNullNullableArg;
^" in let self::error::YnonNull? #t14 = yNonNullNullableArg in #t14 == null ?{core::Object} #t14 as{TypeError} core::Object : #t14{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullArg;
^" in let self::error::YpotentiallyNull% #t15 = yPotentiallyNullArg in #t15 == null ?{core::Object} #t15 as{TypeError} core::Object : #t15{core::Object};
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't.
objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
objectVar = yPotentiallyNullNullableArg;
^" in let self::error::YpotentiallyNull? #t16 = yPotentiallyNullNullableArg in #t16 == null ?{core::Object} #t16 as{TypeError} core::Object : #t16{core::Object};
@@ -1094,13 +1094,13 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Object' is from 'dart:core'.
numVar = objectNullableArg;
^" in objectNullableArg as{TypeError} core::num;
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num'.
numVar = numNullableArg;
^" in let core::num? #t17 = numNullableArg in #t17 == null ?{core::num} #t17 as{TypeError} core::num : #t17{core::num};
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num'.
numVar = intNullableArg;
^" in let core::int? #t18 = intNullableArg in #t18 == null ?{core::num} #t18 as{TypeError} core::num : #t18{core::num};
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't.
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num'.
numVar = doubleNullableArg;
^" in let core::double? #t19 = doubleNullableArg in #t19 == null ?{core::num} #t19 as{TypeError} core::num : #t19{core::num};
numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'.
@@ -1163,7 +1163,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'.
intVar = numNullableArg;
^" in numNullableArg as{TypeError} core::int;
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
intVar = intNullableArg;
^" in let core::int? #t20 = intNullableArg in #t20 == null ?{core::int} #t20 as{TypeError} core::int : #t20{core::int};
intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'.
@@ -1238,7 +1238,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'.
doubleVar = intNullableArg;
^" in intNullableArg as{TypeError} core::double;
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't.
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double'.
doubleVar = doubleNullableArg;
^" in let core::double? #t21 = doubleNullableArg in #t21 == null ?{core::double} #t21 as{TypeError} core::double : #t21{core::double};
doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'.
@@ -1321,11 +1321,11 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
functionVar = doubleNullableArg;
^" in doubleNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = functionNullableArg;
^" in functionNullableArg as{TypeError} core::Function;
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't.
functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function'.
- 'Function' is from 'dart:core'.
functionVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} core::Function;
@@ -1398,7 +1398,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Function' is from 'dart:core'.
toVoidVar = functionNullableArg;
^" in functionNullableArg as{TypeError} () → void;
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't.
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()'.
toVoidVar = toVoidNullableArg;
^" in let () →? void #t22 = toVoidNullableArg in #t22 == null ?{() → void} #t22 as{TypeError} () → void : #t22{() → void};
toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value.
@@ -1480,7 +1480,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = toVoidNullableArg;
^" in toVoidNullableArg as{TypeError} self::Tearoffable;
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't.
tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable'.
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
tearoffableVar = tearoffableNullableArg;
^" in let self::Tearoffable? #t23 = tearoffableNullableArg in #t23 == null ?{self::Tearoffable} #t23 as{TypeError} self::Tearoffable : #t23{self::Tearoffable};
@@ -1564,7 +1564,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
- 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'.
xNonNullVar = tearoffableNullableArg;
^" in tearoffableNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1573,7 +1573,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't.
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull'.
xNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'.
@@ -1636,7 +1636,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xNonNullNullableArg;
^" in xNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'.
@@ -1645,7 +1645,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't.
xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull'.
xPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'.
@@ -1708,7 +1708,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = xPotentiallyNullNullableArg;
^" in xPotentiallyNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't.
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull'.
yNonNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'.
@@ -1783,7 +1783,7 @@ static method error<XnonNull extends core::Object, YnonNull extends self::error:
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yNonNullNullableArg;
^" in yNonNullNullableArg as{TypeError} Never;
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't.
yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'.
yPotentiallyNullVar = yPotentiallyNullNullableArg;
^" in yPotentiallyNullNullableArg as{TypeError} Never;
}
@@ -2,13 +2,13 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a = x; // Error.
@@ -40,14 +40,14 @@ library;
// <A, A>{...m2}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// Try changing the type of the variable.
// for (A y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'Iterable' is from 'dart:core'.
@@ -63,7 +63,7 @@ library;
// switch (x) /* Error. */ {
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
@@ -76,20 +76,20 @@ library;
// return new Future<B?>.value(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// barContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -117,7 +117,7 @@ library;
// <List<A>, List<A>>{...m}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -125,48 +125,48 @@ library;
// for (List<A> y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
// bazContext(c);
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(null); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a1 = x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a2 = null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
@@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {}
static method barContext(core::List<self::A> x) → void {}
static method bazContext(() → core::num f) → void {}
static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::B?> m, core::List<self::B>? l2, core::Map<self::B, self::B>? m2) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in x as{TypeError} self::A);
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a = x; // Error.
@@ -234,14 +234,14 @@ static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::
<A, A>{...m2}; // Error.
^": null};
for (final self::B? #t1 in l) {
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
Try changing the type of the variable.
for (A y in l) {} // Error.
^" in #t1 as{TypeError} self::A;
}
for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'Iterable' is from 'dart:core'.
@@ -263,7 +263,7 @@ Try changing the type of the variable.
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
@@ -278,20 +278,20 @@ Try changing the type of the variable.
^" in asy::Future::value<self::B?>(x) as{TypeError} self::A;
}
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in x as{TypeError} self::A;
}
static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, core::Map<core::List<self::B?>, core::List<self::B?>> m) → core::List<self::A> {
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
barContext(x); // Error.
^" in x as{TypeError} core::List<self::A>);
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -315,7 +315,7 @@ static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, co
<List<A>, List<A>>{...m}; // Error.
^"};
for (final core::List<self::B?> #t2 in l) {
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -323,7 +323,7 @@ Try changing the type of the variable.
for (List<A> y in l) {} // Error.
^" in #t2 as{TypeError} core::List<self::A>;
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -331,42 +331,42 @@ Try changing the type of the variable.
^" in x as{TypeError} core::List<self::A>;
}
static method baz(self::C c) → void {
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
bazContext(c);
^" in (let final self::C #t3 = c in #t3 == null ?{() → core::num?} null : #t3.{self::C::call}{() → core::num?}) as{TypeError} () → core::num);
}
static method boz(Null x) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in x as{TypeError} self::A);
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(null); // Error.
^" in null as{TypeError} self::A);
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a1 = x; // Error.
^" in x as{TypeError} self::A;
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a2 = null; // Error.
^" in null as{TypeError} self::A;
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in x as{TypeError} self::A;
}
else {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in null as{TypeError} self::A;
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in null as{TypeError} self::A;
@@ -2,13 +2,13 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a = x; // Error.
@@ -40,14 +40,14 @@ library;
// <A, A>{...m2}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// Try changing the type of the variable.
// for (A y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'Iterable' is from 'dart:core'.
@@ -63,7 +63,7 @@ library;
// switch (x) /* Error. */ {
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
@@ -76,20 +76,20 @@ library;
// return new Future<B?>.value(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// barContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -117,7 +117,7 @@ library;
// <List<A>, List<A>>{...m}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -125,48 +125,48 @@ library;
// for (List<A> y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
// bazContext(c);
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(null); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a1 = x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a2 = null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
@@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {}
static method barContext(core::List<self::A> x) → void {}
static method bazContext(() → core::num f) → void {}
static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::B?> m, core::List<self::B>? l2, core::Map<self::B, self::B>? m2) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in x as{TypeError} self::A);
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a = x; // Error.
@@ -234,14 +234,14 @@ static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::
<A, A>{...m2}; // Error.
^": null};
for (final self::B? #t1 in l) {
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
Try changing the type of the variable.
for (A y in l) {} // Error.
^" in #t1 as{TypeError} self::A;
}
for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'Iterable' is from 'dart:core'.
@@ -263,7 +263,7 @@ Try changing the type of the variable.
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
@@ -278,20 +278,20 @@ Try changing the type of the variable.
^" in asy::Future::value<self::B?>(x) as{TypeError} self::A;
}
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in x as{TypeError} self::A;
}
static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, core::Map<core::List<self::B?>, core::List<self::B?>> m) → core::List<self::A> {
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
barContext(x); // Error.
^" in x as{TypeError} core::List<self::A>);
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -315,7 +315,7 @@ static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, co
<List<A>, List<A>>{...m}; // Error.
^"};
for (final core::List<self::B?> #t2 in l) {
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -323,7 +323,7 @@ Try changing the type of the variable.
for (List<A> y in l) {} // Error.
^" in #t2 as{TypeError} core::List<self::A>;
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -331,42 +331,42 @@ Try changing the type of the variable.
^" in x as{TypeError} core::List<self::A>;
}
static method baz(self::C c) → void {
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
bazContext(c);
^" in (let final self::C #t3 = c in #t3 == null ?{() → core::num?} null : #t3.{self::C::call}{() → core::num?}) as{TypeError} () → core::num);
}
static method boz(Null x) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in x as{TypeError} self::A);
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(null); // Error.
^" in null as{TypeError} self::A);
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a1 = x; // Error.
^" in x as{TypeError} self::A;
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a2 = null; // Error.
^" in null as{TypeError} self::A;
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in x as{TypeError} self::A;
}
else {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in null as{TypeError} self::A;
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in null as{TypeError} self::A;
@@ -2,13 +2,13 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a = x; // Error.
@@ -40,14 +40,14 @@ library;
// <A, A>{...m2}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// Try changing the type of the variable.
// for (A y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'Iterable' is from 'dart:core'.
@@ -63,7 +63,7 @@ library;
// switch (x) /* Error. */ {
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
@@ -76,20 +76,20 @@ library;
// return new Future<B?>.value(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// barContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -117,7 +117,7 @@ library;
// <List<A>, List<A>>{...m}; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -125,48 +125,48 @@ library;
// for (List<A> y in l) {} // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
// - 'List' is from 'dart:core'.
// - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
// bazContext(c);
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(x); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// fooContext(null); // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a1 = x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// A a2 = null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return x; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
//
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
// pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
// - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
// return null; // Error.
// ^
@@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {}
static method barContext(core::List<self::A> x) → void {}
static method bazContext(() → core::num f) → void {}
static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::B?> m, core::List<self::B>? l2, core::Map<self::B, self::B>? m2) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in let self::B? #t1 = x in #t1 == null ?{self::A} #t1 as{TypeError} self::A : #t1{self::A});
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:30:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a = x; // Error.
@@ -238,7 +238,7 @@ static method foo(self::B? x, core::List<self::B?> l, core::Map<self::B?, self::
for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) {
final self::B? #t3 = :sync-for-iterator.{core::Iterator::current}{self::B?};
{
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't.
self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:35:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
Try changing the type of the variable.
@@ -248,7 +248,7 @@ Try changing the type of the variable.
}
}
{
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<B>?' is nullable and 'Iterable<dynamic>' isn't.
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:36:15: Error: The type 'List<B>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'Iterable' is from 'dart:core'.
@@ -274,7 +274,7 @@ Try changing the type of the variable.
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>' because 'B?' is nullable and 'FutureOr<A>' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr<A>'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
@@ -289,20 +289,20 @@ Try changing the type of the variable.
^" in asy::Future::value<self::B?>(x) as{TypeError} self::A;
}
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:51:10: Error: A value of type 'B?' can't be returned from a function with return type 'A'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in let self::B? #t7 = x in #t7 == null ?{self::A} #t7 as{TypeError} self::A : #t7{self::A};
}
static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, core::Map<core::List<self::B?>, core::List<self::B?>> m) → core::List<self::A> {
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>' because 'B?' is nullable and 'A' isn't.
self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:55:14: Error: The argument type 'List<B?>' can't be assigned to the parameter type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
barContext(x); // Error.
^" in x as{TypeError} core::List<self::A>);
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:56:15: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -330,7 +330,7 @@ static method bar(core::List<self::B?> x, core::List<core::List<self::B?>> l, co
for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) {
final core::List<self::B?> #t8 = :sync-for-iterator.{core::Iterator::current}{core::List<self::B?>};
{
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>' because 'B?' is nullable and 'A' isn't.
core::List<self::A> y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:59:16: Error: A value of type 'List<B?>' can't be assigned to a variable of type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -340,7 +340,7 @@ Try changing the type of the variable.
}
}
}
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>' because 'B?' is nullable and 'A' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:60:10: Error: A value of type 'List<B?>' can't be returned from a function with return type 'List<A>'.
- 'List' is from 'dart:core'.
- 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
@@ -348,42 +348,42 @@ Try changing the type of the variable.
^" in x as{TypeError} core::List<self::A>;
}
static method baz(self::C c) → void {
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't.
self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:64:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()'.
bazContext(c);
^" in (let final self::C #t9 = c in #t9 == null ?{() → core::num?} null : #t9.{self::C::call}{() → core::num?}) as{TypeError} () → core::num);
}
static method boz(Null x) → self::A {
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(x); // Error.
^" in let Null #t10 = x in #t10 == null ?{self::A} #t10 as{TypeError} self::A : #t10{self::A});
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable.
self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
fooContext(null); // Error.
^" in let Null #t11 = null in #t11 == null ?{self::A} #t11 as{TypeError} self::A : #t11{self::A});
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:70:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a1 = x; // Error.
^" in let Null #t12 = x in #t12 == null ?{self::A} #t12 as{TypeError} self::A : #t12{self::A};
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable.
self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
A a2 = null; // Error.
^" in let Null #t13 = null in #t13 == null ?{self::A} #t13 as{TypeError} self::A : #t13{self::A};
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return x; // Error.
^" in let Null #t14 = x in #t14 == null ?{self::A} #t14 as{TypeError} self::A : #t14{self::A};
}
else {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:75:12: Error: A value of type 'Null' can't be returned from a function with return type 'A'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in let Null #t15 = null in #t15 == null ?{self::A} #t15 as{TypeError} self::A : #t15{self::A};
}
function local() → FutureOr<self::A> async /* emittedValueType= self::A */ {
if(true) {
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr<A>' because 'FutureOr<A>' is not nullable.
return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:14: Error: A value of type 'Null' can't be returned from an async function with return type 'FutureOr<A>'.
- 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'.
return null; // Error.
^" in let Null #t16 = null in #t16 == null ?{self::A} #t16 as{TypeError} self::A : #t16{self::A};
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// for (int x in i2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in i2) x];
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// for (int x in l2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in l2) x];
@@ -52,20 +52,20 @@ import self as self;
import "dart:core" as core;
static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, core::Object o1, core::Object? o2) → dynamic {
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
for (int x in i2) x;
^" in i2 as{TypeError} core::Iterable<dynamic>)
x;
{
final core::List<core::int> #t1 = <core::int>[];
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
[for (int x in i2) x];
^" in i2 as{TypeError} core::Iterable<dynamic>)
#t1.{core::List::add}{Invariant}(x){(core::int) → void};
}
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
for (int x in l2) x;
@@ -73,7 +73,7 @@ static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, co
x;
{
final core::List<core::int> #t2 = <core::int>[];
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
[for (int x in l2) x];
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// for (int x in i2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in i2) x];
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// for (int x in l2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in l2) x];
@@ -52,20 +52,20 @@ import self as self;
import "dart:core" as core;
static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, core::Object o1, core::Object? o2) → dynamic {
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
for (int x in i2) x;
^" in i2 as{TypeError} core::Iterable<dynamic>)
x;
{
final core::List<core::int> #t1 = <core::int>[];
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
[for (int x in i2) x];
^" in i2 as{TypeError} core::Iterable<dynamic>)
#t1.{core::List::add}{Invariant}(x){(core::int) → void};
}
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
for (int x in l2) x;
@@ -73,7 +73,7 @@ static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, co
x;
{
final core::List<core::int> #t2 = <core::int>[];
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
[for (int x in l2) x];
@@ -2,23 +2,23 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// for (int x in i2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in i2) x];
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// for (int x in l2) x;
// ^
//
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
// - 'List' is from 'dart:core'.
// - 'Iterable' is from 'dart:core'.
// [for (int x in l2) x];
@@ -53,7 +53,7 @@ import "dart:core" as core;
static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, core::Object o1, core::Object? o2) → dynamic {
{
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
for (int x in i2) x;
^" in let core::Iterable<core::int>? #t1 = i2 in #t1 == null ?{core::Iterable<dynamic>} #t1 as{TypeError} core::Iterable<dynamic> : #t1{core::Iterable<dynamic>}.{core::Iterable::iterator}{core::Iterator<Never>};
@@ -65,7 +65,7 @@ static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, co
{
final core::List<core::int> #t2 = core::_GrowableList::•<core::int>(0);
{
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'Iterable<int>?' is nullable and 'Iterable<dynamic>' isn't.
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'Iterable' is from 'dart:core'.
[for (int x in i2) x];
^" in let core::Iterable<core::int>? #t3 = i2 in #t3 == null ?{core::Iterable<dynamic>} #t3 as{TypeError} core::Iterable<dynamic> : #t3{core::Iterable<dynamic>}.{core::Iterable::iterator}{core::Iterator<Never>};
@@ -76,7 +76,7 @@ static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, co
}
}
{
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
for (int x in l2) x;
@@ -89,7 +89,7 @@ static method error(core::Iterable<core::int>? i2, core::List<core::int>? l2, co
{
final core::List<core::int> #t5 = core::_GrowableList::•<core::int>(0);
{
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>' because 'List<int>?' is nullable and 'Iterable<dynamic>' isn't.
synthesized core::Iterator<Never> :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List<int>?' used in the 'for' loop must implement 'Iterable<dynamic>'.
- 'List' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
[for (int x in l2) x];
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// final s3 = new List<int>.filled(2, null);
// ^
//
@@ -65,7 +65,7 @@ import "dart:async";
static final field asy::StreamTransformer<core::Object?, core::Object?> t = new asy::_StreamHandlerTransformer::•<core::Object?, core::Object?>(handleData: (core::Object? data, asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::close}(){() → void}));
static final field core::List<dynamic> s1 = <dynamic>[];
static final field core::int? s2 = let final core::List<dynamic> #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int};
static final field core::List<core::int> s3 = core::List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static final field core::List<core::int> s3 = core::List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
final s3 = new List<int>.filled(2, null);
^" in null as{TypeError} core::int);
static final field dynamic s4 = (() → Null {
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// final s3 = new List<int>.filled(2, null);
// ^
//
@@ -65,7 +65,7 @@ import "dart:async";
static final field asy::StreamTransformer<core::Object?, core::Object?> t = new asy::_StreamHandlerTransformer::•<core::Object?, core::Object?>(handleData: (core::Object? data, asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::close}(){() → void}));
static final field core::List<dynamic> s1 = <dynamic>[];
static final field core::int? s2 = let final core::List<dynamic> #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int};
static final field core::List<core::int> s3 = core::List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static final field core::List<core::int> s3 = core::List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
final s3 = new List<int>.filled(2, null);
^" in null as{TypeError} core::int);
static final field dynamic s4 = (() → Null {
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// final s3 = new List<int>.filled(2, null);
// ^
//
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
// pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
// final s3 = new List<int>.filled(2, null);
// ^
//
@@ -65,7 +65,7 @@ import "dart:async";
static final field asy::StreamTransformer<core::Object?, core::Object?> t = new asy::_StreamHandlerTransformer::•<core::Object?, core::Object?>(handleData: (core::Object? data, asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink<core::Object?> sink) → void => asy::Future::microtask<void>(() → void => sink.{asy::EventSink::close}(){() → void}));
static final field core::List<dynamic> s1 = core::_GrowableList::•<dynamic>(0);
static final field core::int? s2 = let final core::List<dynamic> #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int};
static final field core::List<core::int> s3 = core::_List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable.
static final field core::List<core::int> s3 = core::_List::filled<core::int>(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:19:36: Error: The argument type 'Null' can't be assigned to the parameter type 'int'.
final s3 = new List<int>.filled(2, null);
^" in let Null #t2 = null in #t2 == null ?{core::int} #t2 as{TypeError} core::int : #t2{core::int});
static final field dynamic s4 = (() → Null {
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
// - 'List' is from 'dart:core'.
// List y = await l(); // should be a List?
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
import "dart:async" as asy;
static method test() → dynamic async /* emittedValueType= dynamic */ {
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
- 'List' is from 'dart:core'.
List y = await l(); // should be a List?
^" in await self::l() /* runtimeCheckType= asy::Future<core::List<dynamic>?> */ as{TypeError} core::List<dynamic>;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
// - 'List' is from 'dart:core'.
// List y = await l(); // should be a List?
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
import "dart:async" as asy;
static method test() → dynamic async /* emittedValueType= dynamic */ {
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
- 'List' is from 'dart:core'.
List y = await l(); // should be a List?
^" in await self::l() /* runtimeCheckType= asy::Future<core::List<dynamic>?> */ as{TypeError} core::List<dynamic>;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
// - 'List' is from 'dart:core'.
// List y = await l(); // should be a List?
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
import "dart:async" as asy;
static method test() → dynamic async /* emittedValueType= dynamic */ {
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
core::List<dynamic> y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>'.
- 'List' is from 'dart:core'.
List y = await l(); // should be a List?
^" in let core::List<dynamic>? #t1 = await self::l() /* runtimeCheckType= asy::Future<core::List<dynamic>?> */ in #t1 == null ?{core::List<dynamic>} #t1 as{TypeError} core::List<dynamic> : #t1{core::List<dynamic>};
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Null x = null;
// ^
@@ -28,7 +28,7 @@ class Null extends core::Object {
;
}
static method test() → dynamic {
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Null x = null;
^" in null as{TypeError} self::Null;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Null x = null;
// ^
@@ -28,7 +28,7 @@ class Null extends core::Object {
;
}
static method test() → dynamic {
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Null x = null;
^" in null as{TypeError} self::Null;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
// pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
// - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
// Null x = null;
// ^
@@ -28,7 +28,7 @@ class Null extends core::Object {
;
}
static method test() → dynamic {
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable.
self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: A value of type 'Null' can't be assigned to a variable of type 'Null'.
- 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'.
Null x = null;
^" in let Null #t1 = null in #t1 == null ?{self::Null} #t1 as{TypeError} self::Null : #t1{self::Null};
@@ -2,12 +2,12 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = x;
// ^
//
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = x;
// ^
@@ -17,11 +17,11 @@ import "dart:core" as core;
static method test<X extends core::Object? = dynamic>(self::test::X? x) → dynamic {
if(x is core::String?) {
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = x;
^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError} core::Object;
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = x;
^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError} core::Object;
@@ -2,12 +2,12 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = x;
// ^
//
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = x;
// ^
@@ -17,11 +17,11 @@ import "dart:core" as core;
static method test<X extends core::Object? = dynamic>(self::test::X? x) → dynamic {
if(x is core::String?) {
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = x;
^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError} core::Object;
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = x;
^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError} core::Object;
@@ -2,12 +2,12 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// Object o = x;
// ^
//
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
// - 'Object' is from 'dart:core'.
// o = x;
// ^
@@ -17,11 +17,11 @@ import "dart:core" as core;
static method test<X extends core::Object? = dynamic>(self::test::X? x) → dynamic {
if(x is core::String?) {
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
Object o = x;
^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t1 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t1 == null ?{core::Object} #t1 as{TypeError} core::Object : #t1{core::Object};
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't.
o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object'.
- 'Object' is from 'dart:core'.
o = x;
^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t2 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t2 == null ?{core::Object} #t2 as{TypeError} core::Object : #t2{core::Object};
@@ -82,19 +82,19 @@ library;
// factory C.factory9({int i}) => new C.constructor4(); // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor5([int? i]) : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor6({int? i}) : this.i = i; // error
// ^
//
@@ -116,12 +116,12 @@ class A extends core::Object {
: self::A::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
@@ -178,12 +178,12 @@ class C extends core::Object implements self::B {
: self::C::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor5([int? i]) : this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor6({int? i}) : this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
@@ -82,19 +82,19 @@ library;
// factory C.factory9({int i}) => new C.constructor4(); // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor5([int? i]) : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor6({int? i}) : this.i = i; // error
// ^
//
@@ -116,12 +116,12 @@ class A extends core::Object {
: self::A::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
@@ -178,12 +178,12 @@ class C extends core::Object implements self::B {
: self::C::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor5([int? i]) : this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor6({int? i}) : this.i = i; // error
^" in i as{TypeError} core::int, super core::Object::•()
;
@@ -82,19 +82,19 @@ library;
// factory C.factory9({int i}) => new C.constructor4(); // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor5([int? i]) : this.i = i; // error
// ^
//
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
// pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
// C.constructor6({int? i}) : this.i = i; // error
// ^
//
@@ -116,12 +116,12 @@ class A extends core::Object {
: self::A::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in let core::int? #t1 = i in #t1 == null ?{core::int} #t1 as{TypeError} core::int : #t1{core::int}, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::A
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
: this.i = i; // error
^" in let core::int? #t2 = i in #t2 == null ?{core::int} #t2 as{TypeError} core::int : #t2{core::int}, super core::Object::•()
;
@@ -178,12 +178,12 @@ class C extends core::Object implements self::B {
: self::C::i = i, super core::Object::•()
;
constructor constructor5([core::int? i = #C1]) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor5([int? i]) : this.i = i; // error
^" in let core::int? #t3 = i in #t3 == null ?{core::int} #t3 as{TypeError} core::int : #t3{core::int}, super core::Object::•()
;
constructor constructor6({core::int? i = #C1}) → self::C
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't.
: self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int'.
C.constructor6({int? i}) : this.i = i; // error
^" in let core::int? #t4 = i in #t4 == null ?{core::int} #t4 as{TypeError} core::int : #t4{core::int}, super core::Object::•()
;
@@ -2,7 +2,7 @@ library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't.
// pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object'.
// - 'Object' is from 'dart:core'.
// return z.x; // Error.
// ^
@@ -19,7 +19,7 @@ class C<X extends self::C<self::C::X%, self::C::X%>? = self::C<dynamic, dynamic>
self::C<core::Object?, core::Object?>? z = self::b ?{self::C<core::Object?, core::Object?>?} x : y;
if(z == null)
throw 0;
return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't.
return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object'.
- 'Object' is from 'dart:core'.
return z.x; // Error.
^" in z{self::C<core::Object?, core::Object?>}.{self::C::x}{core::Object?} as{TypeError} core::Object;

Some files were not shown because too many files have changed in this diff Show More