KT-3118 NoSuchFieldError on private property without backing field &&
KT-3551 Wrong synthetic accessor implementation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package testing
|
||||
|
||||
class Test {
|
||||
private val hello: String
|
||||
get() { return "hello" }
|
||||
|
||||
fun sayHello() : String = hello
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (Test().sayHello() == "hello") "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user