solidity/test/libsolidity/syntaxTests/metaTypes/tooManyArgsForType.sol

8 lines
196 B
Solidity

contract Test {
function creation() public pure returns (bytes memory) {
type(1, 2);
}
}
// ----
// TypeError 8885: (85-95): This function takes one argument, but 2 were provided.