solidity/test/libsolidity/syntaxTests/metaTypes/typeRecursive.sol
2020-05-11 14:51:13 +05:30

9 lines
389 B
Solidity

contract Test {
function f() public pure {
type(type(type(Test)));
}
}
// ----
// TypeError: (65-75): Invalid type for argument in the function call. A contract type or an integer type is required, but type(contract Test) provided.
// TypeError: (60-76): Invalid type for argument in the function call. A contract type or an integer type is required, but tuple() provided.