solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/nested_function_local_access.sol
2020-01-28 17:57:48 +01:00

13 lines
277 B
Solidity

contract C {
function f() public pure returns (uint x) {
assembly {
function f1() {
function f2() { }
x := 2
}
}
}
}
// ----
// DeclarationError: (130-131): Cannot access local Solidity variables from inside an inline assembly function.