Skip to content

Support extends clause with type bounds on dartium #27568

@jacob314

Description

@jacob314

Writing

@JS()
class Foo<T extends Bar> {
  ...
}

causes problems in Dartium as the Dart VM does not accept the generated patch file as
@patch class Foo {
...
}

instead of

@patch class Foo<T exends Bar> {
  ...
}

We either need to increase the complexity of the patch file generation significantly or extend the existing
ignore_patch_signature_mismatch flag in the dart vm to allow this case.
Given JS interop only emits static and factory constructor methods that do not reference the type arguments, the type mismatch errors should be generally harmless.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions