Skip to content

Conversation

@sgrekhov
Copy link
Contributor

It can be argued but I choose the following approach for fixing this issue:

  • syntax_A05_t02.dart and syntax_A05_t04.dart testing that parser can distingish null-aware element and if-null and null-aware expressions. So, simply ignore these warnings.
  • syntax_parenthesized_A01_t01.dart typo fixed
  • syntax_unary_prefix_A01_t01.dart it's syntax test again. But let's have two versions of the test here. One static and one run-time (which ignores the warnings). It'll check that warnings are really reported.
  • type_inference_map_A06_t01.dart it's a type inference test. Expect a warning, no need the run-time version of the test.

Please review.

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I noticed one typo, and then I'm questioning a bunch of errors around ?++i and such (I can't see why we should get an error in those cases)

Copy link
Contributor Author

@sgrekhov sgrekhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. PTAL.

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eernstg eernstg merged commit 449cd8f into dart-lang:master Oct 25, 2024
2 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Nov 1, 2024
2024-10-29 sgrekhov22@gmail.com Fixes dart-lang/co19#2954. Don't expect null-aware warnings in CFE (dart-lang/co19#2955)
2024-10-28 sgrekhov22@gmail.com Fixes dart-lang/co19#2947. Expect AUGMENTATION_OF_DIFFERENT_DECLARATION_KIND in augmenting_types_A02_t14_lib.dart (dart-lang/co19#2952)
2024-10-25 sgrekhov22@gmail.com Fixes dart-lang/co19#2933. Add one more Stream.multi test (dart-lang/co19#2948)
2024-10-25 sgrekhov22@gmail.com Fixes dart-lang/co19#2950. Fix run-time errors in null-aware elements tests (dart-lang/co19#2951)
2024-10-25 sgrekhov22@gmail.com Fixes dart-lang/co19#2386. Add more super-bounded types tests (dart-lang/co19#2949)
2024-10-25 sgrekhov22@gmail.com Fixes dart-lang/co19#2945. Fix invalid_null_aware_operator in null-aware elements tests (dart-lang/co19#2946)
2024-10-25 sgrekhov22@gmail.com dart-lang/co19#2933. Add MultiStreamController tests. Part 4. (dart-lang/co19#2941)

Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try
Change-Id: I77f4faaa3ad785c9c43bf47807fcf9b355edaa5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392906
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants