FIR2IR: generate specific sources for property accessors

Related to KT-60111
This commit is contained in:
Mikhail Glukhikh
2023-10-02 12:08:08 +02:00
committed by Space Team
parent f38b8fd8cb
commit 0fb4c9b4fe
27 changed files with 99 additions and 142 deletions
@@ -1,7 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
<!CONFLICTING_JVM_DECLARATIONS!>fun getX(t: Any) = 1<!>
<!CONFLICTING_JVM_DECLARATIONS!>val Any.x: Int
get() = 1<!>
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
@@ -1,8 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
<!CONFLICTING_JVM_DECLARATIONS!>fun setX(x: Int) {}<!>
<!CONFLICTING_JVM_DECLARATIONS!>var x: Int = 1
set(v) {}<!>
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
@@ -1,3 +0,0 @@
<!CONFLICTING_JVM_DECLARATIONS!>val x: Int
get() = 1<!>
<!CONFLICTING_JVM_DECLARATIONS!>fun getX() = 1<!>
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
val x: Int
<!CONFLICTING_JVM_DECLARATIONS!>get() = 1<!>
<!CONFLICTING_JVM_DECLARATIONS!>fun getX() = 1<!>
@@ -1,5 +0,0 @@
interface T {
<!CONFLICTING_JVM_DECLARATIONS!>val x: Int
get() = 1<!>
<!CONFLICTING_JVM_DECLARATIONS!>fun getX() = 1<!>
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface T {
val x: Int
<!CONFLICTING_JVM_DECLARATIONS!>get() = 1<!>