"Code Cleanup": don't remove deprecated imports when file has @file:Suppress("DEPRECATION") annotation

#KT-33594 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-09-25 10:23:48 +09:00
committed by Yan Zhulanow
parent 4a328981c6
commit cf5a6274e2
10 changed files with 58 additions and 8 deletions
@@ -0,0 +1,6 @@
package bar
interface I
@Deprecated("", ReplaceWith("I"))
interface Bar : I
@@ -0,0 +1,7 @@
@file:Suppress("DEPRECATION")
package foo
import bar.Bar
fun foo(x: Bar) {}
@@ -0,0 +1,7 @@
@file:Suppress("DEPRECATION")
package foo
import bar.Bar
fun foo(x: Bar) {}