2018-05-23 04:31:20 +00:00
|
|
|
contract test {
|
2018-07-02 15:47:48 +00:00
|
|
|
function f() public {
|
2018-05-23 04:31:20 +00:00
|
|
|
uint storage a1;
|
|
|
|
bytes16 storage b1;
|
|
|
|
uint memory a2;
|
|
|
|
bytes16 memory b2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2018-08-07 17:12:49 +00:00
|
|
|
// 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.
|