Skip to content

Conversation

davidmorgan
Copy link
Contributor

The analyzer docs say "library" can be null mostly on invalid code.

Not sure quite how to trigger it, but I did see this in google3 :)

@davidmorgan davidmorgan force-pushed the type-checker-name-robustness branch from 3ceda6b to 1b600b0 Compare October 2, 2025 15:31
@davidmorgan davidmorgan requested a review from kevmoo October 2, 2025 15:33
Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

I mean, a test would be nice...but 🤷

@davidmorgan
Copy link
Contributor Author

I mean, a test would be nice...but 🤷

You are 100% correct.

It turns out it was not that hard :) apparently dynamic is enough to trigger the problem. Added a test. Thanks!

@davidmorgan davidmorgan merged commit 9388e3c into dart-lang:master Oct 3, 2025
20 of 21 checks passed
@davidmorgan davidmorgan deleted the type-checker-name-robustness branch October 3, 2025 16:05
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