b75502513a
This CL fixes type inference of closures using '=>' syntax so that
they infer consistently with an equivalent closure defined using block
syntax ('{}').
Fixes #31436.
Change-Id: I5463dd0ba986e9953ebabbc24ce3ced9a7220007
Reviewed-on: https://dart-review.googlesource.com/27084
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
10 lines
239 B
Plaintext
10 lines
239 B
Plaintext
library test;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method f() → dynamic {
|
|
core::List<core::int> o;
|
|
o.{core::Iterable::forEach}((core::int i) → void => i.{core::num::+}(1));
|
|
}
|
|
static method main() → dynamic {}
|