FIR: Do not add "field" to accessor of a property with receiver

This commit is contained in:
Denis Zharkov
2020-03-17 19:06:55 +03:00
parent ade18d144a
commit a2e7b6d20e
7 changed files with 74 additions and 8 deletions
@@ -8,10 +8,10 @@ val String.foo: Int
val String.bar: Int = 13
// Error
get() = field
get() = <!UNRESOLVED_REFERENCE!>field<!>
class My {
val String.x: Int = 7
// Error
get() = field
}
get() = <!UNRESOLVED_REFERENCE!>field<!>
}