Open matanlurey opened 6 years ago
The actual function called is indeed addAll
of ListBase
's superclass.
That superclass is Object with ListMixin<E>
, which is represented by Object&ListMixin
, which is admittedly confusing (and I don't know where _ListBase
comes from).
I thin it would be more useful to just say that it's the method ListMixin.addAll
, and give its position, then the user knows where to look. Mentioning the mixin application class is technically correct, but not actually useful.
I agree @lrhn thanks!
This is from trying to fix a set of internal test cases using mixins + protocol buffers.
Here is a reproduction case on the latest VM +
--preview-dart-2
:... this fails, at runtime, with the following exception:
Unfortunately, missing from that stack trace is:
The "fix" here is changing the tests to
<String>['Hello', 'World']
, unfortunately.I don't know yet if this will effect real code (i.e. DDC once all type checks are enabled).