aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/380_inline_assembly_constant_access.sol
blob: 03ff9166bad7c97a482338ffd827f54b057b556c (plain) (tree)
1
2
3
4
5
6
7
8
9








                         
                                                                             
contract test {
    uint constant x = 1;
    function f() public {
        assembly {
            let y := x
        }
    }
}
// ----
// TypeError: (107-108): Constant variables not supported by inline assembly.