Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/toOuterClassMethod.kt
T
Valentin Kipyatkov 996292264b Fixed inline when multiple implicit receivers exist
#KT-17776 Fixed
 #KT-17266 Fixed
2017-07-27 13:55:25 +03:00

16 lines
295 B
Kotlin
Vendored

// "Replace with 'newFun(this)'" "true"
// ERROR: Unresolved reference: @Outer
class Outer {
inner class Inner {
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun() {}
}
fun newFun(inner: Inner) {}
}
fun foo(inner: Outer.Inner) {
inner.<caret>oldFun()
}