Files
kotlin-fork/idea/testData/intentions/convertFunctionToProperty/invoke.kt
T

9 lines
141 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
class A(val n: Int) {
operator fun <caret>invoke(): Int = 1
}
fun test(a: A) {
val n = a()
}