aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/210_uninitialized_mapping_variable.sol
blob: 6b25cdfeee613a15a8933cde89989536bc2cc24c (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() public {
        mapping(uint => uint) x;
        x;
    }
}
// ----
// TypeError: (47-70): Uninitialized mapping. Mappings cannot be created dynamically, you have to assign them from a state variable.