Skip to content

Commit

Permalink
Fixes dart-lang#2069. Failing NNBD tests fixed (dart-lang#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov authored May 31, 2023
1 parent 5e4181a commit 736b818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions LanguageFeatures/nnbd/expression_typing_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
/// @issue 41282
/// @author sgrekhov@unipro.ru

class T extends Type {}
class T implements Type {}

class C {
T get runtimeType => new T();
Expand Down
9 changes: 3 additions & 6 deletions LanguageFeatures/nnbd/static_errors_A17_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,17 @@ main() {
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
// ^
// [cfe] Operand of null-aware operation '?.' has type 'Never' which excludes null.
foo()
?..toString();
foo()?..toString();
// ^^^
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
// ^
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
foo()
?..runtimeType;
foo()?..runtimeType;
// ^^^
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
// ^
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
foo()
?..s = 1;
foo()?..s = 1;
// ^^^
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
// ^
Expand Down

0 comments on commit 736b818

Please sign in to comment.