[JS IR] Add JS IR IC tests about companion properties modifications

^KT-54479 Test
This commit is contained in:
Alexander Korepanov
2022-10-17 18:23:35 +02:00
committed by Space Team
parent cd87830ffa
commit 901ebcc043
25 changed files with 216 additions and 0 deletions
@@ -0,0 +1,5 @@
class MyClass {
companion object {
val stringProperty = "0"
}
}
@@ -0,0 +1,6 @@
class MyClass {
companion object {
val stringProperty = "0"
val intProperty = 1
}
}
@@ -0,0 +1,6 @@
class MyClass {
companion object {
val intProperty: Int
inline get() = 6
}
}
@@ -0,0 +1,7 @@
class MyClass {
companion object {
val stringProperty = "-1"
val intProperty = 3
val pairProperty = -1 to 2
}
}
@@ -0,0 +1,8 @@
class MyClass {
companion object {
val stringProperty = "-1"
val intProperty = 2
val pairProperty = -1 to 2
val funcProperty = { 1 }
}
}
@@ -0,0 +1,7 @@
class MyClass {
companion object {
val intProperty = 2
val pairProperty = -1 to 2
val funcProperty = { 2 }
}
}
@@ -0,0 +1,5 @@
class MyClass {
companion object {
val intProperty = 3
}
}
@@ -0,0 +1,6 @@
class MyClass {
companion object {
val intProperty: Int
get() = 4
}
}
@@ -0,0 +1,6 @@
class MyClass {
companion object {
val intProperty: Int
inline get() = 5
}
}
@@ -0,0 +1,40 @@
STEP 0:
modifications:
U : l1.0.kt -> l1.kt
added file: l1.kt
STEP 1:
modifications:
U : l1.1.kt -> l1.kt
modified ir: l1.kt
STEP 2:
modifications:
U : l1.2.kt -> l1.kt
modified ir: l1.kt
STEP 3:
updated exports: l1.kt
STEP 4:
modifications:
U : l1.4.kt -> l1.kt
modified ir: l1.kt
STEP 5:
modifications:
U : l1.5.kt -> l1.kt
modified ir: l1.kt
STEP 6:
updated exports: l1.kt
STEP 7:
modifications:
U : l1.7.kt -> l1.kt
modified ir: l1.kt
STEP 8:
modifications:
U : l1.8.kt -> l1.kt
modified ir: l1.kt
STEP 9:
modifications:
U : l1.9.kt -> l1.kt
modified ir: l1.kt
STEP 10:
modifications:
U : l1.10.kt -> l1.kt
modified ir: l1.kt