-
Notifications
You must be signed in to change notification settings - Fork 28
#3057. Fix tests for literals and the type-check #3116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll have to coordinate with Paul about these changes because they depend on changes which are discussed in dart-lang/language#3100, but only accepted by the language team last week, and not yet specified (or, I think, implemented).
@stereotype441, these changes would presumably be valid when the spec and implementation changes discussed in dart-lang/language#3100 have been performed. What's the right ordering/scheduling of these changes and the associated tests? |
@eernstg said:
I think the changes are significant enough that they should be language-versioned, which means that we should handle them the same way we handle other language versioned features. That means something like:
I'll be including similar comments in tests that I write in Note that the new tests will initially fail, because I haven't implemented the new functionality yet. That's fine. We can ignore the failures for now, and when I get around to implementing the new functionality, I'll search for pre-existing failures to make sure they all start passing. Edit: I'm hoping to ship the new behavior in Dart 3.9. |
FYI, the new experimental flag has landed: dart-lang/sdk@82420ba |
Thank you! |
Experimental flag and the language version added. Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I'm suggesting an adjustment of some comments (because the current wording gives readers too much justification for saying "that's not true!").
Updated. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
2025-04-03 [email protected] dart-lang/co19#3057. Add pattern assignment cases to for-in tests (dart-lang/co19#3130) 2025-04-02 [email protected] dart-lang/co19#3057. Add pattern assignment cases to while-loop tests (dart-lang/co19#3127) 2025-04-02 [email protected] dart-lang/co19#3057. Add pattern assignment cases to do-while tests (dart-lang/co19#3124) 2025-04-02 [email protected] dart-lang/co19#3122. Fix typo in type_inference_A07_t01.dart (dart-lang/co19#3125) 2025-04-01 [email protected] dart-lang/co19#3122. Fix errors in dot shorthands tests. (dart-lang/co19#3123) 2025-04-01 [email protected] dart-lang/co19#3057. Add switch statement tests (dart-lang/co19#3121) 2025-03-31 [email protected] dart-lang/co19#3057. Fix tests for literals and the type-check (dart-lang/co19#3116) Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try Change-Id: Ieb1f5fb641976186bb0f5715c64e020c2ba097ec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/420440 Reviewed-by: Alexander Thomas <[email protected]> Reviewed-by: Erik Ernst <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
No description provided.