Skip to content

Commit

Permalink
Fixes dart-lang#2310. Fix new roll failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed Oct 13, 2023
1 parent b29a0b9 commit 4e93f72
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
/// @author sgrekhov22@gmail.com
class C1 {
// ^^
// [cfe] unspecified
int m1();
//^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
dynamic noSuchMethod(Invocation inv);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ extension type ET1(int id) {
extension type ET2(int _x) {}

main() {
if (E.e1._x is int) {
E.e1._x.isEven;
var v = E.e1;
if (v._x is int) {
v._x.isEven;
}
E.e1.testE();
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ main() {
}
et1.test();

ET2 et2 = ET2<int>(2);
ET2<int?> et2 = ET2<int?>(2);
if (et2._x is int) {
et2._x.isEven;
}
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/Link/create_A04_t10.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ _main(Directory sandbox) async {
Expect.equals(
FileSystemEntityType.link, FileSystemEntity.typeSync(created.path));
} else {
Expect.equals(FileSystemEntityType.file,
Expect.equals(FileSystemEntityType.directory,
FileSystemEntity.typeSync(created.path));
}
asyncEnd();
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/Link/create_A04_t14.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ _main(Directory sandbox) async {
Expect.equals(
FileSystemEntityType.link, FileSystemEntity.typeSync(created.path));
} else {
Expect.equals(FileSystemEntityType.file,
Expect.equals(FileSystemEntityType.directory,
FileSystemEntity.typeSync(created.path));
}
asyncEnd();
Expand Down

0 comments on commit 4e93f72

Please sign in to comment.