solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/474_storage_location_non_array_or_struct_disallowed_is_not_fatal.sol

8 lines
204 B
Solidity
Raw Normal View History

contract C {
function f(uint storage a) public {
a = f;
}
}
// ----
2018-08-07 17:12:49 +00:00
// TypeError: (28-42): Data location can only be specified for array, struct or mapping types, but "storage" was given.