Closed
Description
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:
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.