-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Analyzer fails utils/dummy_compiler_test #4539
Comments
Added this to the M1 milestone. |
Spec 0.11 still says "It is a compile-time error if the name of a named optional parameter begins with an ‘_’ character." It seems for me that until unhold of "Issue #4288/4289 remove old optional parameter syntax" Analyzer is correct when reports this problem. It understands both [] and {} parameters as named optional. So, this code uses named optional parameter and produces error. |
Set owner to @scheglov. |
Added AsDesigned label. |
Before you close this bug, please explain what is wrong with this program: #import('dart:io'); main() { It suffers the same problem. Added Triaged label. |
I don't see any problem. Attachment: |
This is what I see at revision 10980: $ cat fisk.dart main() { |
OK, I see. I will prepare CL shortly. Added Accepted label. |
https://chromiumcodereview.appspot.com/10824411 Added Started label. |
The test utils/dummy_compiler_test is probably the biggest real Dart program we have. It uses the dart2js compiler to compile an empty file.
When the analyzer cannot pass this test, it is losing a lot of coverage and miss an opportunity to automatically detect bugs by testing a real world application that is constantly changing.
dart://io/runtime/http_impl.dart:399: Named parameters cannot start with an '_' character (sourced from dart://io/io_runtime.dart)
398: class _ContentType extends _HeaderValue implements ContentType {
399: _ContentType([String this._primaryType = "", String this.subType = ""]);
dart://io/runtime/http_impl.dart:399: Named parameters cannot start with an '' character (sourced from dart://io/io_runtime.dart)
398: class _ContentType extends _HeaderValue implements ContentType {
399: _ContentType([String this._primaryType = "", String this._subType = ""]);
Compilation failed with 2 problems.
The text was updated successfully, but these errors were encountered: