Skip to content

[Regression] Variant parser fails on nested dictionaries #286

@Aylur

Description

@Aylur

Description

With the original parser code from @ewlsh this used to be parsed correctly:

// { [key: string]: { [key: string]: unknown } }
type NestedDict = $ParseRecursiveVariant<"a{sa{sv}}">

With the changes introduced in #279 it now fails with an error.

Another change I failed to notice from the PR is that v type (aka GLib.Variant<any>) unpacks to any where in the original code it used to unpack to unknown which I feel like was more appropriate.

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