solidity/test/libsolidity/semanticTests/freeFunctions/free_namesake_contract_function.sol

9 lines
155 B
Solidity
Raw Normal View History

function f() pure returns (uint) { return 1337; }
contract C {
function f() public pure returns (uint) {
return f();
}
}
// ----
// f() -> FAILURE