mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
635 B
Solidity
14 lines
635 B
Solidity
contract test {
|
|
function f() public {
|
|
uint storage a1;
|
|
bytes16 storage b1;
|
|
uint memory a2;
|
|
bytes16 memory b2;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (48-63): Data location can only be specified for array, struct or mapping types, but "storage" was given.
|
|
// TypeError: (71-89): Data location can only be specified for array, struct or mapping types, but "storage" was given.
|
|
// TypeError: (97-111): Data location can only be specified for array, struct or mapping types, but "memory" was given.
|
|
// TypeError: (119-136): Data location can only be specified for array, struct or mapping types, but "memory" was given.
|