Files
kotlin-fork/idea/testData/intentions/convertPropertyToFunction/existingFunConflict.kt
T
2016-08-10 11:45:29 +03:00

6 lines
132 B
Kotlin
Vendored

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