Skip to content

Commit 9d347fd

Browse files
authored
Fixes #2310. Fix new roll failures (#2311)
Fix new roll failures
1 parent b29a0b9 commit 9d347fd

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

Language/Classes/Instance_Methods/Method_noSuchMethod/definition_A03_t01.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
/// @author [email protected]
2525
2626
class C1 {
27+
// ^^
28+
// [cfe] unspecified
2729
int m1();
2830
//^^^^^^^^
2931
// [analyzer] unspecified
30-
// [cfe] unspecified
3132
dynamic noSuchMethod(Invocation inv);
3233
}
3334

LanguageFeatures/Private-fields-promotion/not_promotable_A02_t06.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
/// promotable if it is not private
1717
/// @author [email protected]
1818
19+
// SharedOptions=--enable-experiment=inline-class
20+
1921
extension type ET1(int? id) {
2022
void test() {
2123
if (id != null) {

LanguageFeatures/Private-fields-promotion/promotion_A04_t09.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ extension type ET1(int id) {
4444
extension type ET2(int _x) {}
4545

4646
main() {
47-
if (E.e1._x is int) {
48-
E.e1._x.isEven;
47+
var v = E.e1;
48+
if (v._x is int) {
49+
v._x.isEven;
4950
}
5051
E.e1.testE();
5152
}

LanguageFeatures/Private-fields-promotion/promotion_A04_t10.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ main() {
5858
}
5959
et1.test();
6060

61-
ET2 et2 = ET2<int>(2);
61+
ET2<int?> et2 = ET2<int?>(2);
6262
if (et2._x is int) {
6363
et2._x.isEven;
6464
}

LibTest/io/Link/create_A04_t10.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ _main(Directory sandbox) async {
8080
Expect.equals(
8181
FileSystemEntityType.link, FileSystemEntity.typeSync(created.path));
8282
} else {
83-
Expect.equals(FileSystemEntityType.file,
83+
Expect.equals(FileSystemEntityType.directory,
8484
FileSystemEntity.typeSync(created.path));
8585
}
8686
asyncEnd();

LibTest/io/Link/create_A04_t14.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ _main(Directory sandbox) async {
8282
Expect.equals(
8383
FileSystemEntityType.link, FileSystemEntity.typeSync(created.path));
8484
} else {
85-
Expect.equals(FileSystemEntityType.file,
85+
Expect.equals(FileSystemEntityType.directory,
8686
FileSystemEntity.typeSync(created.path));
8787
}
8888
asyncEnd();

0 commit comments

Comments
 (0)