solidity/test/libsolidity/semanticTests/constructor/evm_exceptions_in_constructor_call_fail.sol
2020-07-07 12:16:18 +02:00

22 lines
269 B
Solidity

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