solidity/test/libsolidity/semanticTests/constructor/evm_exceptions_in_constructor_call_fail.sol

20 lines
245 B
Solidity
Raw Normal View History

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