Disallow extension properties with backing fields
#KT-1682 Fixed
This commit is contained in:
@@ -40,7 +40,8 @@ fun test(c: C, b: B) {
|
||||
//variable as extension,
|
||||
trait D {
|
||||
}
|
||||
val D.foo = Foo()
|
||||
val D.foo: Foo
|
||||
get() = Foo()
|
||||
|
||||
class E {
|
||||
fun Foo.invoke() {}
|
||||
|
||||
Reference in New Issue
Block a user