Files
kotlin-fork/compiler/testData/ir/irText/expressions/objectAsCallable.kt
T
2023-03-22 15:18:17 +00:00

13 lines
195 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
object A
enum class En { X }
operator fun A.invoke(i: Int) = i
operator fun En.invoke(i: Int) = i
val test1 = A(42)
val test2 = En.X(42)