mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
13 lines
358 B
Kotlin
Vendored
13 lines
358 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// PARAM_DESCRIPTOR: value-parameter arg: kotlin.String defined in Foo.Companion.bar
|
|
// PARAM_TYPES: kotlin.String
|
|
|
|
class Foo {
|
|
var arguments: Map<String, String>? = null
|
|
|
|
companion object {
|
|
fun bar(arg: String) = Foo().apply {
|
|
arguments = <selection>mapOf(Foo::arguments.name to arg)</selection>
|
|
}
|
|
}
|
|
} |