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

11 lines
186 B
Solidity
Raw Normal View History

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