aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/381_inline_assembly_local_variable_access_out_of_functions.sol
blob: 877f57835f71626c4f4b839760101baa78089321 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract test {
    function f() public {
        uint a;
        assembly {
            function g() -> x { x := a }
        }
    }
}
// ----
// DeclarationError: (114-115): Cannot access local Solidity variables from inside an inline assembly function.