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

7 lines
140 B
Kotlin
Vendored

// SHOULD_FAIL_WITH: Property foo already exists
class A(val n: Int) {
fun <caret>foo(): Boolean = n > 1
}
val A.foo: Int
get() = 1