solidity/test/libsolidity/syntaxTests/inlineAssembly/external_identifier_access_shadowing.sol
2021-08-17 12:12:56 +02:00

14 lines
420 B
Solidity

contract C {
function f() public returns (uint x) {
assembly {
function g() -> x {
x := 42
}
x := g()
}
}
}
// ----
// DeclarationError 3859: (103-104): This declaration shadows a declaration outside the inline assembly block.
// DeclarationError 6578: (123-124): Cannot access local Solidity variables from inside an inline assembly function.