Files
kotlin-fork/idea/testData/inspectionsLocal/scopeFunctions/letToRun/qualifyThisNoConflict.kt
T
Dmitry Jemerov 60874f29fe Inspection for scope functions conversion
#KT-17047 Fixed
2018-01-15 15:37:36 +01:00

16 lines
262 B
Kotlin
Vendored

// WITH_RUNTIME
class C {
fun foo(s: String, s2: String = ""): String = "c"
val bar = "C"
}
class D {
fun baz(s: String): String = "d"
val quux = "D"
val x = C().<caret>let {
it.foo(baz(it.foo(quux + it.bar)), baz(it.bar))
}
}