mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds syntax test that covers arrays of contracts.
This commit is contained in:
parent
2d0daae796
commit
3076d80480
11
test/libsolidity/syntaxTests/array/contract_array.sol
Normal file
11
test/libsolidity/syntaxTests/array/contract_array.sol
Normal file
@ -0,0 +1,11 @@
|
||||
contract C {
|
||||
C[] y = new C[](3);
|
||||
C[3] x;
|
||||
function f() public {
|
||||
C[3] memory z;
|
||||
y.push(this);
|
||||
x[0] = this;
|
||||
z[0] = this;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user