Files
kotlin-fork/idea/testData/intentions/convertFunctionToProperty/unaryOp.kt
T
2015-02-05 23:12:38 +03:00

9 lines
131 B
Kotlin
Vendored

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