Skip to content

Getting warning about unused import when importing and exporting same file. #12370

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

Closed
DartBot opened this issue Aug 11, 2013 · 4 comments
Closed
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable

Comments

@DartBot
Copy link

DartBot commented Aug 11, 2013

This issue was originally filed by [email protected]


What steps will reproduce the problem?
import "some/file.dart";
export "some/file.dart";

What is the expected output? What do you see instead?
Expected: no warning
Instead: "Unused Import"

What version of the product are you using? On what operating system?
Dart Editor / Dart SDK r25822

@DartBot
Copy link
Author

DartBot commented Aug 11, 2013

This comment was originally written by [email protected]


Realised I didn't enter a summary too late, sorry about that. :-/

@lrhn
Copy link
Member

lrhn commented Aug 12, 2013

The warning is correct if there is no other code in the library that uses the import.
You don't need to import a file in order to export it, the two are completely separate.

Do you get the warning even if you do use the imported library in the current library?


Added NeedsInfo label.
Changed the title to: "Getting warning about unused import when importing and exporting same file.".

@DartBot
Copy link
Author

DartBot commented Aug 12, 2013

This comment was originally written by [email protected]


Oh! I didn't know about that. So, no bug then. Sorry for wasting your time :-S

@anders-sandholm
Copy link
Contributor

Added Invalid label.

@DartBot DartBot added Type-Defect closed-invalid Closed as we don't believe the reported issue is generally actionable labels Aug 13, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable
Projects
None yet
Development

No branches or pull requests

4 participants