"Code Cleanup": don't remove deprecated imports when file has @file:Suppress("DEPRECATION") annotation
#KT-33594 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
4a328981c6
commit
cf5a6274e2
Vendored
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package bar
|
||||
|
||||
interface I
|
||||
|
||||
@Deprecated("", ReplaceWith("I"))
|
||||
interface Bar : I
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@file:Suppress("DEPRECATION")
|
||||
|
||||
package foo
|
||||
|
||||
import bar.Bar
|
||||
|
||||
fun foo(x: Bar) {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@file:Suppress("DEPRECATION")
|
||||
|
||||
package foo
|
||||
|
||||
import bar.Bar
|
||||
|
||||
fun foo(x: Bar) {}
|
||||
Reference in New Issue
Block a user