2ded62c53e
This directive doesn't have a lot of meaning. It is always set this way that we are getting text file with the same name as test file.
20 lines
389 B
Kotlin
Vendored
20 lines
389 B
Kotlin
Vendored
// KIND: STANDALONE_LLDB
|
|
// FREE_COMPILER_ARGS: -XXLanguage:+UnitConversionsOnArbitraryExpressions
|
|
|
|
// FILE: kt42208-1.kt
|
|
fun main() {
|
|
val a = foo()
|
|
bar(a)
|
|
}
|
|
// FILE: kt42208-2.kt
|
|
// aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
class A
|
|
val list = mutableListOf<A>()
|
|
inline fun foo() = { ->
|
|
list.add(A())
|
|
}
|
|
// FILE: kt42208-3.kt
|
|
fun bar(v:(()->Unit)) {
|
|
v()
|
|
}
|