[JS IR] Add JS IR IC tests about companion properties modifications
^KT-54479 Test
This commit is contained in:
committed by
Space Team
parent
cd87830ffa
commit
901ebcc043
+5
@@ -0,0 +1,5 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val stringProperty = "0"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val stringProperty = "0"
|
||||
val intProperty = 1
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val intProperty: Int
|
||||
inline get() = 6
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val stringProperty = "-1"
|
||||
val intProperty = 3
|
||||
val pairProperty = -1 to 2
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val stringProperty = "-1"
|
||||
val intProperty = 2
|
||||
val pairProperty = -1 to 2
|
||||
val funcProperty = { 1 }
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val intProperty = 2
|
||||
val pairProperty = -1 to 2
|
||||
val funcProperty = { 2 }
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val intProperty = 3
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val intProperty: Int
|
||||
get() = 4
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class MyClass {
|
||||
companion object {
|
||||
val intProperty: Int
|
||||
inline get() = 5
|
||||
}
|
||||
}
|
||||
+40
@@ -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
|
||||
Reference in New Issue
Block a user