solidity/test/libsolidity/semanticTests/inlineAssembly/external_identifier_access_shadowing.sol

13 lines
206 B
Solidity

contract C {
function f() public returns (uint x) {
assembly {
function g() -> f { f := 2 }
x := g()
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 2