Skip to content

Bug in type inference when parsing textual representation without known types #630

Description

@Dfinity-Bjoern

My minimal example for reproduction is the following:

decode(encode(vec{ record{ topic = opt variant{DaoCommunitySettings} }; record{ topic = opt variant{SnsFrameworkManagement} }}))

vec {
  record { 338_645_423 = opt variant { 1_138_944_090 } };
  record { 338_645_423 = opt variant { 1_138_944_090 } };
}

This particular example is taken from SNS types, but generally the problem seems to be inferring the type of the variant inside the vec, which seems to default to just using the first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions