Files
kotlin-fork/idea/testData/intentions/convertLambdaToReference/companion.kt.after
T
Mikhail Glukhikh 631f58f27f Lambda --> reference: correct handling of companion references
Reference receivers are named more accurately now #KT-13341 Fixed
2017-03-14 18:45:06 +03:00

11 lines
180 B
Plaintext
Vendored

// WITH_RUNTIME
class Foo {
companion object {
fun create(x: String): Foo = Foo()
}
}
fun main(args: Array<String>) {
listOf("a").map(Foo.Companion::create)
}