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

12 lines
169 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
assembly {
function k() {}
k
}
}
}
// ----
// TypeError: (86-87): Function k used without being called.