solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/473_storage_location_non_array_or_struct_disallowed.sol

6 lines
147 B
Solidity

contract C {
function f(uint storage a) public { }
}
// ----
// TypeError: (28-42): Data location can only be given for array or struct types.