Skip to content

dart2js: Type assertions and casts fail for Polymer code #13955

Closed
@rakudrama

Description

@rakudrama

This problem is blocking polymer integration with web components.

class Observable {}
class ObservableMixin implements Observable {}
class HtmlElement native ... {}
class PolymerElement extends HtmlElement with ObservableMixin {}

This check fails:

    p = ... // a PolymerElement
    ...
    Observable o = p;

The way to fix this is to fix Issue #9732 - all type checking code takes an interceptor with the argument, and the optimizer can specialize or remove the interceptor where appropriate.

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresclosed-not-plannedClosed as we don't intend to take action on the reported issueweb-dart2js

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions