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

Unified Diff: tests/language/ref_before_declaration_test.dart

Issue 2901853002: Improve various old tests. (Closed)
Patch Set: Created 3 years, 7 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 | « tests/language/named_parameters_aggregated_test.dart ('k') | tests/language/static_parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/ref_before_declaration_test.dart
diff --git a/tests/language/ref_before_declaration_test.dart b/tests/language/ref_before_declaration_test.dart
index 3eb718c80b8312fbca8de07e1530160a3cf5f40e..a8faf054421475bf3995aa1b9c64489414f4ad35 100644
--- a/tests/language/ref_before_declaration_test.dart
+++ b/tests/language/ref_before_declaration_test.dart
@@ -43,11 +43,11 @@ class C {
void test4() {
void Q() {
- P(); // Refers to non-existing top-level function P
+ P(); //# 06: compile-time error
+ }
+ void P() {
+ Q();
}
- void P() { // //# 06: compile-time error
- Q(); // //# 06: continued
- } // //# 06: continued
Function f = () {x = f;}; // //# 07: compile-time error
}
« no previous file with comments | « tests/language/named_parameters_aggregated_test.dart ('k') | tests/language/static_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698