dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.21k stars 1.57k forks source link

Allow renaming JS interop members #39056

Open natebosch opened 5 years ago

natebosch commented 5 years ago

Today we silently ignore string in @JS() annotations on members. The JS member and the dart member must share the same name.

In the short term we should have a static error for this.

In the long term we should support renames. Support may be blocked on disallowing extending or implementing JS interop types: #37896

a14n commented 5 years ago

Dup of #24779 ?

Particularly see https://github.com/dart-lang/sdk/issues/24779#issuecomment-349013276 which will be awesome to address.

vsmenon commented 4 years ago

Marking as P2 for at least the static error for what is broken now.