Skip to content

[js_interop] No warning if a JS interop type constructor is annotated with @JS() #61274

@sgrekhov

Description

@sgrekhov
extension type ET._(JSObject _) implements JSObject {
  @JS("whatever")
  external ET(int? id, String? name);

  external int? get id;
  external String? get name;
}

The @JS() annotation on the constructor above has no effect and should probably trigger a warning. @srujzs ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions