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