solidity/test/libsolidity/syntaxTests/errors/invalid_parameter_location.sol

17 lines
407 B
Solidity

==== Source: A ====
contract test {
error e1(string storage a);
}
==== Source: B ====
contract test {
error e1(string memory a);
}
==== Source: C ====
contract test {
error e1(string calldata a);
}
// ----
// ParserError 2314: (A:36-43): Expected ',' but got 'storage'
// ParserError 2314: (B:36-42): Expected ',' but got 'memory'
// ParserError 2314: (C:36-44): Expected ',' but got 'calldata'