Files
kotlin-fork/idea/testData/refactoring/inline/inlineVariableOrProperty/property/Library.kt
T
Mikhail Glukhikh 4ef0096d46 Refactoring: inline val / fun now use the common inliner
This prevents their inconsistent work in some situations
NB: breaks three tests if used alone
2017-04-19 18:27:26 +03:00

5 lines
125 B
Kotlin
Vendored

// ERROR: Cannot perform refactoring.\nVariable length has no initializer
fun foo(s: String) {
val l = s.<caret>length
}