Add regression test for ReplaceWith
#KT-35015 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'kotlin.math.cos(x)'" "true"
|
||||
|
||||
package package1
|
||||
|
||||
import package1.Math.cos
|
||||
|
||||
object Math {
|
||||
@Deprecated("Replace", ReplaceWith("kotlin.math.cos(x)", "kotlin.math.cos"))
|
||||
fun cos(x: Double): Double = kotlin.math.cos(x)
|
||||
}
|
||||
|
||||
val test = <caret>cos(kotlin.math.PI)
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Replace with 'kotlin.math.cos(x)'" "true"
|
||||
|
||||
package package1
|
||||
|
||||
import package1.Math.cos
|
||||
|
||||
object Math {
|
||||
@Deprecated("Replace", ReplaceWith("kotlin.math.cos(x)", "kotlin.math.cos"))
|
||||
fun cos(x: Double): Double = kotlin.math.cos(x)
|
||||
}
|
||||
|
||||
val test = kotlin.math.cos(kotlin.math.PI)
|
||||
Reference in New Issue
Block a user