solidity/test/libsolidity/syntaxTests/literalSuffixes/application/invalid_suffix_in_delete.sol
2023-05-17 16:55:14 +02:00

10 lines
235 B
Solidity

function suffix(string memory s) pure suffix returns (string memory) { return s; }
contract C {
function f() public pure {
delete "abc" suffix;
}
}
// ----
// TypeError 4247: (143-155): Expression has to be an lvalue.