Inspection for scope functions conversion

#KT-17047 Fixed
This commit is contained in:
Dmitry Jemerov
2018-01-05 15:29:58 +01:00
parent 0b24be9460
commit 60874f29fe
41 changed files with 856 additions and 26 deletions
@@ -0,0 +1,15 @@
// 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>run {
foo(baz(foo(quux + bar)), baz(bar))
}
}