Adds syntax test that covers arrays of contracts.

This commit is contained in:
Erik Kundt 2019-02-25 15:22:02 +01:00 committed by Alex Beregszaszi
parent 2d0daae796
commit 3076d80480

View 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;
}
}