Skip to content

Element.noSuchMethod breaks analysis server checks #27599

Closed
@eukreign

Description

@eukreign

I'm using the standard dart:html APIs to build Custom Elements and this means I have a lot of classes extending HtmlElement/Element.

The problem is that if you extend Element it has an implementation for noSuchMethod() way up the inheritance path (in JSObject). It appears that the Dart analysis service throws its hands up when it finds a class with noSuchMethod().

Here is an example:

screenshot from 2016-10-17 13-43-43
https://dartpad.dartlang.org/5f0b6acae7fb19c37c29dbb653948ee7

The expectation is that both FooConcrete and FooConcrete2 should exhibit the same error regarding a missing getter implementation. But because FooConcrete2 extends Element which has noSuchMethod() no error is produced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-obsoleteClosed as the reported issue is no longer relevantweb-js-interopIssues that impact all js interopweb-librariesIssues impacting dart:html, etc., libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions