We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the const name and the named parameter name are the same, then dart 1.20.1 fails with expression is not a valid compile-time constant.
1.20.1
expression is not a valid compile-time constant
const String lineLength = '120'; foo({lineLength: lineLength}) async { print(lineLength); } main() => foo();
async
lineLength: lineLength
The text was updated successfully, but these errors were encountered:
3342380
crelier
No branches or pull requests
If the const name and the named parameter name are the same, then dart
1.20.1
fails withexpression is not a valid compile-time constant
.async
on vm workslineLength: lineLength
to something else works (so it only happens when they share the same name)The text was updated successfully, but these errors were encountered: