mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test.
This commit is contained in:
parent
2c2c976697
commit
621ce3df20
@ -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.
|
@ -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.
|
Loading…
Reference in New Issue
Block a user