solidity/test/libsolidity/semanticTests/freeFunctions/free_namesake_contract_function.sol
2023-05-11 10:56:55 -05:00

9 lines
155 B
Solidity

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