aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol
blob: 4c1f96e6e5160e842e214e2ec8b9cefd7b6eb20d (plain) (tree)
1
2
3
4
5
6
            
                                                                         

       

                                                                                                                      
contract c {
    function f() public { c[10] storage a = 7; uint8[10 * 2] storage x; }
}
// ----
// TypeError: (39-58): Type int_const 7 is not implicitly convertible to expected type contract c[10] storage pointer.
// DeclarationError: (60-83): Uninitialized storage pointer.