Skip to content

Commit 736b818

Browse files
authored
Fixes #2069. Failing NNBD tests fixed (#2070)
1 parent 5e4181a commit 736b818

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

LanguageFeatures/nnbd/expression_typing_A01_t01.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
/// @issue 41282
2020
/// @author [email protected]
2121
22-
23-
class T extends Type {}
22+
class T implements Type {}
2423

2524
class C {
2625
T get runtimeType => new T();

LanguageFeatures/nnbd/static_errors_A17_t04.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,17 @@ main() {
3636
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
3737
// ^
3838
// [cfe] Operand of null-aware operation '?.' has type 'Never' which excludes null.
39-
foo()
40-
?..toString();
39+
foo()?..toString();
4140
// ^^^
4241
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
4342
// ^
4443
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
45-
foo()
46-
?..runtimeType;
44+
foo()?..runtimeType;
4745
// ^^^
4846
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
4947
// ^
5048
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
51-
foo()
52-
?..s = 1;
49+
foo()?..s = 1;
5350
// ^^^
5451
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
5552
// ^

0 commit comments

Comments
 (0)