solidity/test/libsolidity/syntaxTests/inlineAssembly/leave_invalid.sol

10 lines
166 B
Solidity
Raw Normal View History

2019-10-28 14:46:58 +00:00
contract C {
function f() public pure {
assembly {
leave
}
}
}
// ----
// SyntaxError: (63-68): Keyword "leave" can only be used inside a function.