aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/379_inline_assembly_constant_assign.sol
blob: 866232dd0091805c1519a70166e60930dd71c3be (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                             
pragma experimental "v0.5.0";
contract test {
    uint constant x = 1;
    function f() public {
        assembly {
            x := 2
        }
    }
}
// ----
// TypeError: (128-129): Constant variables not supported by inline assembly.