Code fragment:
fun test() = 1 // comment
Kotlin code fragment:
fun test2() = 2 // comment
Code fragment:
fun test() = 1 // comment
Kotlin code fragment:
fun test2() = 2 // comment
// FILE: 1.kt | |
package p3 | |
class A { | |
fun <T> test(a: List<T>): Int { | |
println("Function 1") | |
return 1 | |
} | |
fun test(b: List<Int>) { | |
println("Function 2") |
// FILE: 1.kt | |
package p3 | |
class A { | |
fun<T> inTransaction(block: (tran: String) -> T): T { | |
println("Function 1") | |
return block("") | |
} | |
fun inTransaction(block: (tran: String) -> Unit) { |