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

Unified Diff: tests/language/ref_before_declaration_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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/ref_before_declaration_test.dart
diff --git a/tests/language/ref_before_declaration_test.dart b/tests/language/ref_before_declaration_test.dart
index 9ecbac728dcfc9ed83b1c49aea8a383248f8b40c..62cb19969c25328d3939f45e11952fef4b6e4248 100644
--- a/tests/language/ref_before_declaration_test.dart
+++ b/tests/language/ref_before_declaration_test.dart
@@ -18,7 +18,7 @@ class C {
void test1() {
use(f); // Refers to instance field f.
- var f = 'A shut mouth gathers no foot.'; /// 00: compile-time error
+ var f = 'A shut mouth gathers no foot.'; //# 00: compile-time error
}
void test2() {
@@ -26,7 +26,7 @@ class C {
use(f); // Refers to instance field f.
}
- var f = 'When chemists die, they barium.'; /// 01: compile-time error
+ var f = 'When chemists die, they barium.'; //# 01: compile-time error
if (true) {
var f = 1; // ok, shadows outer f and instance field f.
}
@@ -37,19 +37,19 @@ class C {
use(x); // Refers to top-level x.
use(y); // Refers to top-level y.
}
- final x = "I have not yet begun to procrastinate."; /// 02: compile-time error
- const y = "Honk if you like peace and quiet!"; /// 03: compile-time error
+ final x = "I have not yet begun to procrastinate."; //# 02: compile-time error
+ 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
+ void P() { //# 06: compile-time error
+ Q(); //# 06: continued
+ } //# 06: continued
- Function f = () {x = f;}; /// 07: compile-time error
+ Function f = () {x = f;}; //# 07: compile-time error
}
test() {
@@ -62,12 +62,12 @@ class C {
void testTypeRef() {
String s = 'Can vegetarians eat animal crackers?';
- var String = "I distinctly remember forgetting that."; /// 04: compile-time error
+ var String = "I distinctly remember forgetting that."; //# 04: compile-time error
}
void testLibPrefix() {
var pie = math.PI;
- final math = 0; /// 05: compile-time error
+ final math = 0; //# 05: compile-time error
}

Powered by Google App Engine
This is Rietveld 408576698