FIR: Do not create synthetic properties for non-Java accessors
^KT-35495 Fixed
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
class C {
|
||||
|
||||
val s = "OK"
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
class CallbackBlock {}
|
||||
|
||||
public class Foo
|
||||
@@ -21,4 +20,4 @@ fun box() : String {
|
||||
if (foo.getBar() != 1) return "Fail";
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
-4
@@ -1,7 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// Note: does not pass on FIR because of non-prohibited Kotlin synthetic properties,
|
||||
// fun getS() = s is considered to be recursive here :(
|
||||
// It's a question to be discussed in Dec 2019. Muted at this moment.
|
||||
// WITH_RUNTIME
|
||||
// FILE: lateinit.kt
|
||||
private lateinit var s: String
|
||||
|
||||
-4
@@ -1,7 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// Note: does not pass on FIR because of non-prohibited Kotlin synthetic properties,
|
||||
// fun getS() = s is considered to be recursive here :(
|
||||
// It's a question to be discussed in Dec 2019. Muted at this moment.
|
||||
// FILE: lateinit.kt
|
||||
private lateinit var s: String
|
||||
|
||||
|
||||
Reference in New Issue
Block a user