This commit is contained in:
chriseth 2018-11-29 17:59:34 +01:00
parent 2c2c976697
commit 621ce3df20
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// This used to cause an internal error because of the visitation order.
contract Test {
function createChild() public {
Child asset = new Child();
}
}
contract Parent {
constructor(address _address) public {}
}
contract Child is Parent {
}
// ----
// TypeError: (146-155): Trying to create an instance of an abstract contract.

View File

@ -0,0 +1,11 @@
pragma experimental ABIEncoderV2;
contract C {
function f(Data.S memory a) public {}
}
contract Data {
struct S { S x; }
}
// ----
// Warning: (0-33): Experimental features are turned on. Do not use experimental features on live deployments.
// TypeError: (63-78): Internal or recursive type is not allowed for public or external functions.