Files
kotlin-fork/compiler/testData/ir/irText/expressions/sam/samConstructors.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

25 lines
461 B
Plaintext
Vendored

fun test1(): Runnable {
return local fun <anonymous>() {
return Unit
}
/*-> Runnable */
}
fun test2(a: Function0<Unit>): Runnable {
return a /*-> Runnable */
}
fun foo() {
}
fun test3(): Runnable {
return ::foo /*-> Runnable */
}
fun test4(): Comparator<Int> {
return local fun <anonymous>(a: @FlexibleNullability Int?, b: @FlexibleNullability Int?): Int {
return a /*!! Int */.minus(other = b /*!! Int */)
}
/*-> Comparator<Int> */
}