mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Issue 11610 : Replced typeError with fataTypeError in lines 390 and 406. Test file added in test/libsolidity/syntaxTests/calldata_struct_argument_with_internal_type_inside.sol
Issue : 11610 : Test cases updated, Changelog.md file updated to include change on 0.8.11
This commit is contained in:
@@ -387,7 +387,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
_var.referenceLocation() == VariableDeclaration::Location::Storage &&
|
||||
!m_currentContract->abstract()
|
||||
)
|
||||
m_errorReporter.typeError(
|
||||
m_errorReporter.fatalTypeError(
|
||||
3644_error,
|
||||
_var.location(),
|
||||
"This parameter has a type that can only be used internally. "
|
||||
@@ -403,7 +403,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
solAssert(!message.empty(), "Expected detailed error message!");
|
||||
if (_function.isConstructor())
|
||||
message += " You can make the contract abstract to avoid this problem.";
|
||||
m_errorReporter.typeError(4103_error, _var.location(), message);
|
||||
m_errorReporter.fatalTypeError(4103_error, _var.location(), message);
|
||||
}
|
||||
else if (
|
||||
!useABICoderV2() &&
|
||||
|
||||
Reference in New Issue
Block a user