Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: tests/language/call_test.dart

Issue 11099044: Register parameter types for closure invocations to the backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disable call_test for VM. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/call_test.dart
diff --git a/tests/language/final_for_in_variable_test.dart b/tests/language/call_test.dart
similarity index 70%
copy from tests/language/final_for_in_variable_test.dart
copy to tests/language/call_test.dart
index abbabb01e7224d6f4da6a91cf2465e35df30a553..6e87507f7b0d4a4787acc1ec71a9a6dd98ccfadd 100644
--- a/tests/language/final_for_in_variable_test.dart
+++ b/tests/language/call_test.dart
@@ -3,7 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
main() {
- for (final i in [1, 2, 3]) {
- i = 4; /// 01: compile-time error
+ bar(a) {
+ return a is String;
}
+ Expect.isFalse(bar(1));
+ Expect.isTrue(bar.call('foo'));
}

Powered by Google App Engine
This is Rietveld 408576698