solidity/test/libsolidity/semanticTests/constructor/evm_exceptions_in_constructor_call_fail.sol
2020-03-19 14:42:25 +01:00

20 lines
245 B
Solidity

contract A {
constructor() public {
address(this).call("123");
}
}
contract B {
uint256 public test = 1;
function testIt() public {
A a = new A();
++test;
}
}
// ----
// testIt() ->
// test() -> 2