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

12 lines
210 B
Solidity

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