Index: pkg/kernel/testcases/closures/for_in_closure.dart |
diff --git a/pkg/kernel/testcases/closures/for_in_closure.dart b/pkg/kernel/testcases/closures/for_in_closure.dart |
index b48b18572797cc8ebf787754e8206dded67dbcf3..7dab558d62711e6254967398e0da9f3aee9826b9 100644 |
--- a/pkg/kernel/testcases/closures/for_in_closure.dart |
+++ b/pkg/kernel/testcases/closures/for_in_closure.dart |
@@ -6,8 +6,9 @@ const numbers = const <int>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; |
main() { |
var closures = []; |
+ var captured_outside = 0; |
for (int i in numbers) { |
- closures.add(() => i); |
+ closures.add(() => i + captured_outside); |
} |
int sum = 0; |
for (Function f in closures) { |