aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/474_storage_location_non_array_or_struct_disallowed_is_not_fatal.sol
blob: e74db3756a6808d6d77b738770639c73da650efd (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f(uint storage a) public {
        a = f;
    }
}
// ----
// TypeError: (28-42): Data location can only be specified for array, struct or mapping types, but "storage" was given.