Skip to content

EnC: VB anonymous type reconstruction from metadata ignores "key-ness" #1292

Description

@tmat

There seems to be a problem in EnC impl of anonymous types in VB – in AssignTemplatesNamesAndCompile we never set the “key” flag of the field:

AnonymousTypeDescriptor.ComputeKey(key.Names, Function(f) f, Function(f) False)

Which then results in clashes – type (a, b) collides with (Key a, Key b), for example. My guess is we need to reconstruct the fact that a field is a “key” from metadata. This blocks EnC of almost all but trivial VB LINQ queries, because they heavily rely on anonymous types.

Activity

  1. changed the title [-]EnC VB anonymous type reconstruction from metadata ignores "key-ness"[/-] [+]EnC: VB anonymous type reconstruction from metadata ignores "key-ness"[/+] on Mar 16, 2015
  2. tmat commented on Mar 16, 2015

    @tmat
    MemberAuthor

    /cc @cston

  3. self-assigned this
    on Mar 16, 2015
  4. added a commit that references this issue on Mar 17, 2015
    b72939d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions