Skip to content

[Feature Request][compiler] warning on field selection #17095

@rahxephon89

Description

@rahxephon89

🚀 Feature Request

Motivation

Given the following enum type:

enum E<T1, T2> has key {
  V1{name: T1}
  V2{name: T2}
}

Whether field selection v.0 for value v of type E pass compilation depends on type instantiation of T1 and T2. We may want to generate a warning for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For Grabs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions