6ac6baae8e
When calling Object methods on dynamic receivers, record the interfaceTarget it Kernel. Back ends will use this to treat the call as a statically typed one. This is half of the problem in https://github.com/dart-lang/sdk/issues/33293 Bug: https://github.com/dart-lang/sdk/issues/33293 Change-Id: I8d05903e5b85370a4e697ad3afc494cbc14bcc6a Reviewed-on: https://dart-review.googlesource.com/57820 Commit-Queue: Kevin Millikin <kmillikin@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
10 lines
347 B
Plaintext
10 lines
347 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method test() → void {
|
|
core::List<dynamic> l = <dynamic>[1, "hello"];
|
|
core::List<core::String> l2 = l.{core::Iterable::map}<core::String>((dynamic element) → core::String => element.{core::Object::toString}()).{core::Iterable::toList}();
|
|
}
|
|
static method main() → void {}
|