Importing Language Feature results in warning

Since I moved to scala 2.10.0 there are a series of warnings related to missing language features, they can be fixed with imports like this:

import scala.language.postfixOps

However this generates a warning for unused method. I like these plugin warning so much that I've becomed a bit obsessive in getting everything green.

Is there a way to disable the warning for the unused import warning for language features?

Thanks for any help.

3 comments
Comment actions Permalink

This is removed from clearing in "Optimize imports" feature, and should be definetely removed from "Unused import" feature too.
Of course it's temporary thing and we have to implement it in such way, like compiler.
I created two issues:
http://youtrack.jetbrains.com/issue/SCL-5168
http://youtrack.jetbrains.com/issue/SCL-5169

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

I did not undestand why this is a temporary issue. I was under the impression that SIP-18 was there to stay. Is there some refence to the temporary nature of this?

0
Comment actions Permalink

Temporary feature is: language feature imports always used.
But we have to implement better thing: if language feature is not used, then such import can be marked as unused. Additionally we need to implement inspections for such language features, which are used without language feature import.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.