Loosen restrictions on package:js/Native type conflicts to nearly empty classes #46393
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
pkg-js
web-js-interop
Issues that impact all js interop
Projects
Currently,
package:js
has checks to make sure that the class being bound to in a@JS()
annotation doesn't conflict with an@Native
class. For context, #44211 pointed out issues with treating native types as interop types today.Instead of issuing an error for any interop use, we only need to issue an error for when there are instance members within the interop class that aren't external constructors. This will allow users to declare static extension methods on the interop'd class and use native types with interop statically.
The text was updated successfully, but these errors were encountered: