ReplaceWith: don't keep class literal & callable reference in inlining
#KT-30197 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'bar(y)'" "true"
|
||||
|
||||
@Deprecated("", replaceWith = ReplaceWith("bar(y)"))
|
||||
fun foo(x: Any, y: Any, z: Any) {
|
||||
}
|
||||
fun bar(y: Any) {}
|
||||
fun main() {
|
||||
<caret>foo(4::class, 42::dec, ::bar)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'bar(y)'" "true"
|
||||
|
||||
@Deprecated("", replaceWith = ReplaceWith("bar(y)"))
|
||||
fun foo(x: Any, y: Any, z: Any) {
|
||||
}
|
||||
fun bar(y: Any) {}
|
||||
fun main() {
|
||||
bar(42::dec)
|
||||
}
|
||||
Reference in New Issue
Block a user