solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/invalidTypes/constructor_call.sol
2020-07-07 12:16:18 +02:00

13 lines
277 B
Solidity

contract C {
constructor(bytes32 _arg) {
}
}
contract A {
function f() public {
new C((1234));
}
}
// ----
// TypeError 9553: (108-114): Invalid type for argument in function call. Invalid implicit conversion from int_const 1234 to bytes32 requested.