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

9 lines
145 B
Kotlin
Vendored

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