From 3076d8048067585805ed1bcf54c79de7afac624c Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 25 Feb 2019 15:22:02 +0100 Subject: [PATCH] Adds syntax test that covers arrays of contracts. --- test/libsolidity/syntaxTests/array/contract_array.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/libsolidity/syntaxTests/array/contract_array.sol diff --git a/test/libsolidity/syntaxTests/array/contract_array.sol b/test/libsolidity/syntaxTests/array/contract_array.sol new file mode 100644 index 000000000..cf4d39da2 --- /dev/null +++ b/test/libsolidity/syntaxTests/array/contract_array.sol @@ -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; + } +} +