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

10 lines
329 B
Solidity

contract Test {
struct S { uint x; }
function f() public pure {
// Unsupported for now, but might be supported in the future
type(S);
}
}
// ----
// TypeError: (154-155): Invalid type for argument in the function call. A contract type or an integer type is required, but type(struct Test.S) provided.