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

Unified Diff: dart/tests/language/ref_before_declaration_test.dart

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/tests/language/prefix9_test.dart ('k') | dart/tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/ref_before_declaration_test.dart
===================================================================
--- dart/tests/language/ref_before_declaration_test.dart (revision 29808)
+++ dart/tests/language/ref_before_declaration_test.dart (working copy)
@@ -41,10 +41,22 @@
const y = "Honk if you like peace and quiet!"; /// 03: compile-time error
}
+ void test4() {
+ void Q() {
+ P(); // Refers to non-existing top-level function P
+ }
+ void P() { /// 06: compile-time error
+ Q(); /// 06: continued
+ } /// 06: continued
+
+ Function f = () {x = f;}; /// 07: compile-time error
+ }
+
test() {
test1();
test2();
test3();
+ test4();
}
}
« no previous file with comments | « dart/tests/language/prefix9_test.dart ('k') | dart/tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698