Skip to content

missing diagnose for interface with initialized field #2795

Closed
@HerrCai0907

Description

@HerrCai0907

Bug description

ASC does not diagnose for these code which will diagnose An interface property cannot have an initializer. in TS

interface NS {
  v:string = ""
}

class T implements NS {
  v:string = "";
}

new T();

Steps to reproduce

npm run build

AssemblyScript version

v0.27.x

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