Skip to content

An array of nested struct not supported #3546

@pash7ka

Description

@pash7ka

If my contract has struct A, struct B where one field is A, and an array of B, it can not be compiled with an error UnimplementedFeatureError: Only in-memory reference type can be stored.

contract ArrayOfNestedStructTest {
    struct A {
        uint a;
    }
    struct B {
        A b;        
    }
    B[] public bArr;
}

solc version: up to 0.4.21-nightly.2018.2.16+commit.3f7e82d0.Emscripten.clang
Expected: this contract should be compiled without errors and warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions