Skip to content

Commit 29c7947

Browse files
authored
Fixes #2059. Don't expect an error in a weak mode (#2060)
1 parent 897491e commit 29c7947

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

LanguageFeatures/nnbd/weak/const_evaluation_A06_t01.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@
1111
1212
// Requirements=nnbd-weak
1313

14+
import "../../../Utils/expect.dart";
1415
import '../const_evaluation_lib.dart';
1516
import 'const_evaluation_legacy_lib.dart';
1617

1718
const dynamic d = null;
1819

1920
main() {
2021
const c1 = C.t(null, cLegacyInt);
21-
// ^^^^^^^^^^^^^^^^^^^^^
22-
// [analyzer] unspecified
23-
// [cfe] unspecified
24-
2522
const c2 = C.t(d, cLegacyInt);
26-
// ^^^^^^^^^^^^^^^^^^
27-
// [analyzer] unspecified
28-
// [cfe] unspecified
23+
Expect.isNull(c1.x);
24+
Expect.isNull(c2.x);
2925
}

0 commit comments

Comments
 (0)