Files
kotlin-fork/compiler/testData/codegen/box/callableReference/adaptedReferences/withReceiver.kt
T

11 lines
238 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME
fun MutableSet<CharSequence>.foo(s: CharSequence): Set<CharSequence> {
s.also(::add)
return this
}
fun box(): String = mutableSetOf<CharSequence>().foo("OK").single() as String