solidity/test/libsolidity/syntaxTests/metaTypes/unsupportedArgForType.sol
2019-01-17 20:36:48 +01:00

10 lines
301 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 function call. Contract type required, but type(struct Test.S) provided.