solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/leave_items_on_tack.sol
2020-01-08 16:12:06 +01:00

10 lines
252 B
Solidity

contract C {
function f() pure public {
assembly {
mload(0)
}
}
}
// ----
// TypeError: (75-83): Top-level expressions are not supposed to return values (this expression returns 1 value). Use "pop()" or assign them.