solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/missing_variable_in_assign.sol

12 lines
236 B
Solidity
Raw Normal View History

2018-10-24 12:29:33 +00:00
contract C {
function f() public pure {
assembly {
let x := mload(0)
:= 1
}
}
}
// ----
// ParserError: (87-88): Literal, identifier or instruction expected.
// ParserError: (87-88): Expected primary expression.