gluecodium icon indicating copy to clipboard operation
gluecodium copied to clipboard

Internal tag of parent not applied for nested struct (Flutter)

Open Hsilgos opened this issue 6 months ago • 1 comments

For Flutter, the nested struct of an internal struct is exposed.

package sdk.core

@Internal
struct OuterStruct {
    struct InnerStruct {
        a: Int = 1
    }

    inner: InnerStruct = {}
}

Leads to

export 'src/sdk/core/outer_struct.dart' show OuterStruct_InnerStruct;

Expected: inter struct not exposed

Current workaround: Add @Internal tag to nested struct.

Hsilgos avatar Aug 19 '24 19:08 Hsilgos