solidity/test/libsolidity/syntaxTests/metaTypes/codeIsNoLValue.sol

11 lines
288 B
Solidity
Raw Normal View History

2019-01-10 11:11:55 +00:00
contract Test {
function f() public pure {
type(C).creationCode = new bytes(6);
type(C).runtimeCode = new bytes(6);
}
}
contract C {}
// ----
// TypeError 4247: (55-75): Expression has to be an lvalue.
// TypeError 4247: (100-119): Expression has to be an lvalue.