Skip to content
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

Fix test cases failing with latest Dart SDK #2312

Merged
merged 14 commits into from
Dec 27, 2023

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Dec 19, 2023

@elliette elliette changed the title Fix test case failing due to new DDC type system Fix test cases failing due to new DDC type system Dec 20, 2023
@elliette elliette changed the title Fix test cases failing due to new DDC type system Fix test cases failing with latest Dart SDK Dec 21, 2023
Copy link
Contributor

@Markzipan Markzipan left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this break!

@@ -160,6 +161,10 @@ void main() {
final names =
properties.map((p) => p.name).where((x) => x != '__proto__').toList();
final expected = [
if (dartSdkIsAtLeast(
'3.3.0-242.0.dev',
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is the known cutoff point, could we store it in a const in a shared lib?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

if (dartSdkIsAtLeast(
'3.3.0-242.0.dev',
))
'T',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is fine to do to get things working, but we likely don't want T to be exposed here - as it's not meant to be user-visible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a TODO and opened an issue

@elliette elliette merged commit 546a037 into dart-lang:master Dec 27, 2023
47 checks passed
elliette added a commit to elliette/webdev that referenced this pull request Dec 27, 2023
elliette added a commit to elliette/webdev that referenced this pull request Dec 27, 2023
elliette added a commit to elliette/webdev that referenced this pull request Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants