solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/invalidTypes/constructor_call.sol

13 lines
277 B
Solidity
Raw Normal View History

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