Skip to content

[pigeon] Nested list types aren't preserved #116117

@stuartmorgan-g

Description

@stuartmorgan-g

The Everything type in pigeons/all_datatypes.dart has a field List<List<bool?>?>? nestedList. In an integration test of the echo API I tried to do a listEquals on the sent and received objects' nestedList items and got:

type 'List<Object?>' is not a subtype of type 'List<bool?>?' in type cast

It looks like we're not correctly reconstructing the nested types in the host->Dart direction. Even just trying to print the object is throwing a cast error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions