-
Notifications
You must be signed in to change notification settings - Fork 28
#1401. Exhaustiveness tests fixed and new ones added #2019
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
#1401. Exhaustiveness tests fixed and new ones added #2019
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.
LGTM!
@@ -11,7 +11,7 @@ | |||
// SharedOptions=--enable-experiment=patterns | |||
|
|||
String test1(Map<bool, bool> m) => | |||
switch (m) { | |||
switch (m) { // Empty map is not matched |
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.
Great, thanks!
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.
We should probably get into a habit of adding a comment whenever we have a non-trivial discussion. If we do this all the time for many days, and we have to discuss "what should this code do?" then surely it will be helpful for a future reader of the code to get a hint about the contents and outcomes of those discussions.
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.
Agreed!
2023-04-11 [email protected] dart-lang/co19#1401. Exhaustiveness tests fixed and new ones added (dart-lang/co19#2019) 2023-04-11 [email protected] Fixes dart-lang/co19#2006. `Pointer` can have top types as type arguments (dart-lang/co19#2013) 2023-04-11 [email protected] Fixes dart-lang/co19#2010. Fix exhaustiveness tests for a cast-pattern (dart-lang/co19#2018) 2023-04-07 [email protected] Fixes dart-lang/co19#2004. Update expected errors locations for CFE (dart-lang/co19#2011) 2023-04-07 [email protected] Fixes dart-lang/co19#2005. DynamicLibrary.process() is supported on Windows (dart-lang/co19#2012) 2023-04-07 [email protected] Fixes dart-lang/co19#2007. Fix UintPtr_A01_t01.dart not to fail on 32-bit platforms (dart-lang/co19#2014) 2023-04-07 [email protected] Fixes dart-lang/co19#2008. Split pattern_context_A01_t01.dart test to multiple methods (dart-lang/co19#2015) 2023-04-07 [email protected] Fixes dart-lang/co19#2009. Update scope_A01_t01.dart according to the current CFE behavior (dart-lang/co19#2016) Change-Id: I5b43a5c5f133dded30564749b38f6a0c965b62fe Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295281 Reviewed-by: Alexander Thomas <[email protected]>
This PR contains changes according to #1987 review