If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:
Dart SDK Version (dart --version)
Unsure, I am using the dartpad.
Whether you are using Windows, MacOSX, or Linux (if applicable)
Linux
Whether you are using Chrome, Safari, Firefox, Edge (if applicable)
Chrome
According to the language specification 2.2, statement:
import "dart:io" as io1 if (dart.library.io) "dart:core";
should be considered as invalid, as "dart:io" is already a <configurableUri>. And the rest of if (dart.library.io) "dart:core" cannot be matched by a <combinator>.
Thank you for taking the time to file an issue!
This tracker is for issues related to:
If you aren't sure, file the issue here and we'll find the right home for it. In your issue, please include:
Dart SDK Version (
dart --version
) Unsure, I am using the dartpad.Whether you are using Windows, MacOSX, or Linux (if applicable) Linux
Whether you are using Chrome, Safari, Firefox, Edge (if applicable) Chrome
According to the language specification 2.2, statement:
import "dart:io" as io1 if (dart.library.io) "dart:core";
should be considered as invalid, as
"dart:io"
is already a<configurableUri>
. And the rest ofif (dart.library.io) "dart:core"
cannot be matched by a<combinator>
.However, this statement is successfully parsed in dart2js which is used by dartpad. As shown in https://dartpad.dartlang.org/2d46cfbd0800029e8ff99265dc049946 . It looks like a parser bug of dart2js.