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

Unified Diff: tests/language/issue13179_test.dart

Issue 978633003: Don't define parameters when visiting a function-typed formal parameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « pkg/analyzer/test/generated/non_error_resolver_test.dart ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/issue13179_test.dart
diff --git a/tests/isolate/issue_21398_child_isolate1.dart b/tests/language/issue13179_test.dart
similarity index 60%
copy from tests/isolate/issue_21398_child_isolate1.dart
copy to tests/language/issue13179_test.dart
index 1a720bd499c03102608f99aec1bc8e6aaf631101..0439ceab895f5925234763b90cb323007bc19b14 100644
--- a/tests/isolate/issue_21398_child_isolate1.dart
+++ b/tests/language/issue13179_test.dart
@@ -2,11 +2,18 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:isolate';
import "package:expect/expect.dart";
-main(List<String> args, message) {
- var sendPort1 = args[0] as SendPort;
- var sendPort2 = args[1] as SendPort;
- sendPort2.send(sendPort1);
+int count = 0;
+
+void f([void f([x]) = f]) {
+ count++;
+ if (f != null) {
+ f(null);
+ }
+}
+
+main() {
+ f();
+ Expect.equals(2, count);
}
« no previous file with comments | « pkg/analyzer/test/generated/non_error_resolver_test.dart ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698