Intentions: function <-> property conversion
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// SHOULD_FAIL_WITH: Property foo already exists
|
||||
class A(val n: Int) {
|
||||
fun <caret>foo(): Boolean = n > 1
|
||||
}
|
||||
|
||||
val A.foo: Int
|
||||
get() = 1
|
||||
Reference in New Issue
Block a user