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

Unified Diff: tests/language/named_parameters_default_eq_test.dart

Issue 2417223002: Add reference to invalid typedef so dart2js will detect it. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/named_parameters_default_eq_test.dart
diff --git a/tests/language/named_parameters_default_eq_test.dart b/tests/language/named_parameters_default_eq_test.dart
index 83abffb93dddb04c4f9f3831bf9a860238b843d7..2afc8c40377642dbba788b249bef97c8785eb110 100644
--- a/tests/language/named_parameters_default_eq_test.dart
+++ b/tests/language/named_parameters_default_eq_test.dart
@@ -32,6 +32,9 @@ class A {
}
main() {
+ // Reference the type, or dart2js won't see that the declaration is invalid
+ F1 _ = null; /// 01: continued
+
var a = new A();
int local({x = 3, y : 5, z}) => x * y * (z ?? 2);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698