Files
sdk/pkg/front_end/testcases/nnbd/issue41386b.dart.strong.expect
T
Johnni Winther 5c51990a80 [cfe] Handle void as return context in sync function expressions
Closes #43174

Change-Id: I6b1cc04cbf2d65d9b877dfabf3e0f535f2491a94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168542
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-10-21 13:43:03 +00:00

13 lines
478 B
Plaintext

library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
static method test() → void {
core::Map<dynamic, dynamic> map = <dynamic, dynamic>{};
map.{core::Map::[]}(0).foo;
core::Iterable<core::String> elements = <core::String>[];
core::List<dynamic> list = core::List::from<dynamic>(elements);
core::List::from<dynamic>(elements).{core::Iterable::forEach}((dynamic element) → void => element.foo);
}
static method main() → dynamic {}