mirror of
https://github.com/dart-lang/sdk
synced 2024-07-25 04:15:45 +00:00
8ef90b8641
Dart 2 version of this benchmark doesn't have this call. Dart 3 (NNBD) is more strict and allows implicit casts only if casting from dynamic, so it highlights places where types are incompatible. However, Iterable.cast<int>() has a high overhead and it doesn't look like a right way to suppress static type check in this case, as it creates a new Iterable which would additionally cast each element. Simple 'input as dynamic' cast is enough in this case and reflects what was happening in Dart 2 case when types are incompatible. Fixes https://github.com/dart-lang/sdk/issues/42506 Change-Id: I8d83796a53b53e6f567f533f3d5369cd29f6ad97 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152700 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Régis Crelier <regis@google.com> Reviewed-by: William Hesse <whesse@google.com> |
||
---|---|---|
.. | ||
BigIntParsePrint | ||
Calls | ||
Example | ||
FfiBoringssl | ||
FfiCall | ||
FfiMemory | ||
FfiStruct | ||
Isolate | ||
IsolateJson | ||
IsolateSpawn | ||
IsolateSpawnMemory | ||
ListCopy | ||
RuntimeType | ||
SoundSplayTreeSieve | ||
TypedDataDuplicate | ||
Utf8Decode | ||
analysis_options.yaml |