CodeInliner: fix KNPE
#KT-22733 Fixed #KT-36225 Fixed #EA-206694 Fixed
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Replace with 'foo(list)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Builder<Base : Any> {
|
||||
@Deprecated(message = "", level = DeprecationLevel.WARNING, replaceWith = ReplaceWith("foo(list)"))
|
||||
inline fun <reified T: Base> addFoo(list: List<T>) {
|
||||
|
||||
}
|
||||
|
||||
inline fun <reified T: Base> foo(list: List<T>) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val b = Builder<Number>()
|
||||
b.<caret>addFoo(listOf(1))
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Replace with 'foo(list)'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Builder<Base : Any> {
|
||||
@Deprecated(message = "", level = DeprecationLevel.WARNING, replaceWith = ReplaceWith("foo(list)"))
|
||||
inline fun <reified T: Base> addFoo(list: List<T>) {
|
||||
|
||||
}
|
||||
|
||||
inline fun <reified T: Base> foo(list: List<T>) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val b = Builder<Number>()
|
||||
b.<caret>foo(listOf(1))
|
||||
}
|
||||
Reference in New Issue
Block a user