-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Call 'String?.length' in a constant expression #59904
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
Comments
|
(Errm, I looked at the summary, but it's wrong. So I deleted my first comment which is not relevant to the actual issue.) Here's a better comment:
So both tools should report an error because |
Very, very likely Maybe we can add it next time we touch the constant sublanguage for some reason, along with |
(Question answered. Changing it would be a language feature. Until then |
Filed #60509 for the error non reported by CFE |
The code below produces an error in the analyzer but works in VM. Which tool is right here?
Dart SDK version: 3.7.0-309.0.dev (dev) (Tue Jan 7 20:06:23 2025 -0800) on "windows_x64"
The text was updated successfully, but these errors were encountered: