mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add missing dots in deprecation warning
This commit is contained in:
parent
e56d1aa5aa
commit
ad7cf42aad
@ -2378,12 +2378,12 @@ bool TypeChecker::visit(Identifier const& _identifier)
|
||||
if (_identifier.name() == "sha3" && fType->kind() == FunctionType::Kind::KECCAK256)
|
||||
m_errorReporter.typeError(
|
||||
_identifier.location(),
|
||||
"\"sha3\" has been deprecated in favour of \"keccak256\""
|
||||
"\"sha3\" has been deprecated in favour of \"keccak256\"."
|
||||
);
|
||||
else if (_identifier.name() == "suicide" && fType->kind() == FunctionType::Kind::Selfdestruct)
|
||||
m_errorReporter.typeError(
|
||||
_identifier.location(),
|
||||
"\"suicide\" has been deprecated in favour of \"selfdestruct\""
|
||||
"\"suicide\" has been deprecated in favour of \"selfdestruct\"."
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -8,5 +8,5 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (58-62): "sha3" has been deprecated in favour of "keccak256"
|
||||
// TypeError: (101-108): "suicide" has been deprecated in favour of "selfdestruct"
|
||||
// TypeError: (58-62): "sha3" has been deprecated in favour of "keccak256".
|
||||
// TypeError: (101-108): "suicide" has been deprecated in favour of "selfdestruct".
|
||||
|
@ -5,4 +5,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (60-64): "sha3" has been deprecated in favour of "keccak256"
|
||||
// TypeError: (60-64): "sha3" has been deprecated in favour of "keccak256".
|
||||
|
@ -5,4 +5,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (60-67): "suicide" has been deprecated in favour of "selfdestruct"
|
||||
// TypeError: (60-67): "suicide" has been deprecated in favour of "selfdestruct".
|
||||
|
Loading…
Reference in New Issue
Block a user