Index: tests/language_strong/ref_before_declaration_test.dart |
diff --git a/tests/language_strong/ref_before_declaration_test.dart b/tests/language_strong/ref_before_declaration_test.dart |
index 3eb718c80b8312fbca8de07e1530160a3cf5f40e..9a6c2b556cdc956e897d803895f6ac4e6fe3686a 100644 |
--- a/tests/language_strong/ref_before_declaration_test.dart |
+++ b/tests/language_strong/ref_before_declaration_test.dart |
@@ -17,14 +17,14 @@ class C { |
C() : f = 'How do you spell PTSD?'; |
void test1() { |
- use(f); // Refers to instance field f. |
+ use(f); // Refers to instance field f. |
var f = 'A shut mouth gathers no foot.'; // //# 00: compile-time error |
} |
void test2() { |
- void localFunc() { |
- use(f); // Refers to instance field f. |
- } |
+ void localFunc() { |
+ use(f); // Refers to instance field f. |
+ } |
var f = 'When chemists die, they barium.'; // //# 01: compile-time error |
if (true) { |
@@ -34,8 +34,8 @@ class C { |
void test3() { |
if (true) { |
- use(x); // Refers to top-level x. |
- use(y); // Refers to top-level y. |
+ 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 |
@@ -43,7 +43,7 @@ class C { |
void test4() { |
void Q() { |
- P(); // Refers to non-existing top-level function P |
+ P(); // Refers to non-existing top-level function P |
} |
void P() { // //# 06: compile-time error |
Q(); // //# 06: continued |
@@ -70,20 +70,16 @@ void testLibPrefix() { |
final math = 0; // //# 05: compile-time error |
} |
+ |
void noErrorsExpected() { |
use(x); |
for (var x = 0; x < 10; x++) use(x); |
for (var i = 0; i < 10; i++) var x = 0; |
if (true) var x = 0; |
while (false) var x = 0; |
- try { |
- throw "ball"; |
- } catch (x) { |
- use(x); |
- } |
+ try { throw "ball"; } catch (x) { use(x); } |
switch (x) { |
- case 0: |
- var x = 'Does fuzzy logic tickle?'; |
+ case 0: var x = 'Does fuzzy logic tickle?'; |
} |
var int = 007; |
} |
@@ -94,4 +90,4 @@ void main() { |
testTypeRef(); |
testLibPrefix(); |
noErrorsExpected(); |
-} |
+} |