No such field error when set private property without backing field (analog of KT-2892)
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
class Test {
|
||||||
|
private var i : Int
|
||||||
|
get() = 1
|
||||||
|
set(i) {}
|
||||||
|
|
||||||
|
fun foo() {
|
||||||
|
fun f() {
|
||||||
|
i = 2
|
||||||
|
}
|
||||||
|
f()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
Test().foo()
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
@@ -3406,6 +3406,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
doTest("compiler/testData/codegen/box/properties/kt613.kt");
|
doTest("compiler/testData/codegen/box/properties/kt613.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("privatePropertyWithoutBackingField.kt")
|
||||||
|
public void testPrivatePropertyWithoutBackingField() throws Exception {
|
||||||
|
doTest("compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("traitExtendsClass.kt")
|
@TestMetadata("traitExtendsClass.kt")
|
||||||
public void testTraitExtendsClass() throws Exception {
|
public void testTraitExtendsClass() throws Exception {
|
||||||
doTest("compiler/testData/codegen/box/properties/traitExtendsClass.kt");
|
doTest("compiler/testData/codegen/box/properties/traitExtendsClass.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user