import declarations sometimes not crossed out if they refer to deprecated overloaded definition
In the following example, the import declaration is not crossed out, even though depr is deprecated. If we instead move the @deprecated annotation to the other overload, the import declaration is crossed out.
class A {
import S.depr
depr(1)
}
object S {
@deprecated("", "")
def depr(x: Int) = x
def depr(x: Int, y: Int) = x
}
Leave a comment
on 2016-02-08 18:21 *
By Simon Schäfer
This JEP says that for Java static imports shouldn't be crossed out at all: http://openjdk.java.net/jeps/211