12 lines
168 B
Kotlin
Vendored
12 lines
168 B
Kotlin
Vendored
package foo
|
|
|
|
class A {
|
|
operator fun invoke(i: Int) = i
|
|
}
|
|
|
|
fun box(): String {
|
|
val result = A()(1)
|
|
if (result != 1) return "fail: $result"
|
|
return "OK"
|
|
}
|