Skip to content

Commit 479295b

Browse files
authored
#1737. Roll failures fixed (#1739)
1 parent 026599f commit 479295b

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

Language/Statements/Continue/label_t07.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ main() {
2222
case 1:
2323
x = 0;
2424
continue L;
25-
// ^^^^^^^^^^^
25+
// ^
2626
// [analyzer] COMPILE_TIME_ERROR.CONTINUE_LABEL_INVALID
2727
// ^^^^^^^^
2828
// [cfe] A 'continue' label must be on a loop or a switch member.

LanguageFeatures/Patterns/constant_A02_t18.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ String test(p.Color value) {
4343
p.Color.white => "white",
4444
p.Color.red => "red",
4545
p.Color.yellow => "yellow",
46-
p.Color.blue => "default",
46+
p.Color.blue => "blue",
4747
p.Color.black => "black",
4848
_ => "default"
4949
};

LanguageFeatures/Patterns/record_A01_t03.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ main() {
140140
Expect.equals("list-2", test((10, ["42", 42, 0])));
141141
Expect.equals("default", test((10, [Object(), 42])));
142142
Expect.equals("map-1", test((11, {1: 42})));
143-
Expect.equals("map-2", test((11, {"1": 42})));
143+
Expect.equals("map-2", test((11, {"1": "42"})));
144+
Expect.equals("default", test((11, {"1": 42})));
144145
Expect.equals("default", test((11, {Object(): 42})));
145146
Expect.equals("record-1 = 42", test((12, (42,))));
146147
Expect.equals("record-2", test((12, (42, x: 0))));

LanguageFeatures/Patterns/record_A01_t06.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ main() {
140140
Expect.equals("list-2", test((n10: ["42", 42, 0])));
141141
Expect.equals("default", test((n10: [Object(), 42])));
142142
Expect.equals("map-1", test((n11: {1: 42})));
143-
Expect.equals("map-2", test((n11: {"1": 42})));
143+
Expect.equals("map-2", test((n11: {"1": "42"})));
144+
Expect.equals("default", test((n11: {"1": 42})));
144145
Expect.equals("default", test((n11: {Object(): 42})));
145146
Expect.equals("record-1 = 42", test((n12: (42,))));
146147
Expect.equals("record-2", test((n12: (42, x: 0))));

LanguageFeatures/Patterns/switch_expression_A03_t04.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ main() {
109109
Expect.equals(1, test3("three", "two"));
110110
Expect.equals(1, test4("three", "two"));
111111
Expect.equals(3, test5("one", "two"));
112-
Expect.equals(-1, test5("one", "two"));
112+
Expect.equals(-1, test6("one", "two"));
113113
}

LanguageFeatures/Patterns/switch_expression_A03_t13.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ main() {
7575
Expect.equals(3, x);
7676

7777
x %= switch("two") {
78-
"two" => 1,
78+
"two" => 2,
7979
_ => 0
8080
};
8181
Expect.equals(1, x);
8282

8383
x ~/= switch("two") {
84-
"two" => 1,
84+
"two" => 2,
8585
_ => 0
8686
};
8787
Expect.equals(0, x);

LanguageFeatures/Patterns/variable_A02_t05.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ String test3(Map m) {
6868

6969
main() {
7070
Expect.equals("{1: <String>x}", test1({1: "x"}));
71-
Expect.equals("{1: <int>2]", test1({1: 2}));
71+
Expect.equals("{1: <int>2}", test1({1: 2}));
7272
Expect.equals("default", test1({1: true}));
7373

7474
Expect.equals("{1: <String>x}", test2({1: "x"}));
75-
Expect.equals("{1: <int>2]", test2({1: 2}));
75+
Expect.equals("{1: <int>2}", test2({1: 2}));
7676
Expect.equals("default", test2({1: true}));
7777

7878
Expect.equals("{1: <String>x}", test3({1: "x"}));
79-
Expect.equals("{1: <int>2]", test3({1: 2}));
79+
Expect.equals("{1: <int>2}", test3({1: 2}));
8080
Expect.equals("default", test3({1: true}));
8181
}

0 commit comments

Comments
 (0)