Update compiler tests to use KProperty instead of PropertyMetadata

This commit is contained in:
Alexander Udalov
2015-10-13 14:02:29 +03:00
parent a6846b3967
commit 51bf68ce27
68 changed files with 265 additions and 139 deletions
@@ -1,6 +1,6 @@
== Delegate ==
class Delegate {
fun getValue(_this: Nothing?, p: PropertyMetadata): Int = 0
fun getValue(_this: Nothing?, p: KProperty<*>): Int = 0
}
---------------------
L0:
@@ -13,24 +13,24 @@ sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
== getValue ==
fun getValue(_this: Nothing?, p: PropertyMetadata): Int = 0
fun getValue(_this: Nothing?, p: KProperty<*>): Int = 0
---------------------
L0:
1 <START>
v(_this: Nothing?)
magic[FAKE_INITIALIZER](_this: Nothing?) -> <v0>
w(_this|<v0>)
v(p: PropertyMetadata)
magic[FAKE_INITIALIZER](p: PropertyMetadata) -> <v1>
v(p: KProperty<*>)
magic[FAKE_INITIALIZER](p: KProperty<*>) -> <v1>
w(p|<v1>)
r(0) -> <v2>
ret(*|<v2>) L1
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================
== a ==
val a = Delegate()
@@ -1,7 +1,9 @@
import kotlin.reflect.KProperty
class Delegate {
fun getValue(_this: Nothing?, p: PropertyMetadata): Int = 0
fun getValue(_this: Nothing?, p: KProperty<*>): Int = 0
}
val a = Delegate()
val b by a
val b by a
@@ -1,15 +1,15 @@
== Delegate ==
class Delegate {
fun getValue(_this: Nothing?, p: PropertyMetadata): Int = 0
fun getValue(_this: Nothing?, p: KProperty<*>): Int = 0
}
---------------------
=====================
== getValue ==
fun getValue(_this: Nothing?, p: PropertyMetadata): Int = 0
fun getValue(_this: Nothing?, p: KProperty<*>): Int = 0
---------------------
<v0>: {<: Nothing?} NEW: magic[FAKE_INITIALIZER](_this: Nothing?) -> <v0>
<v1>: {<: PropertyMetadata} NEW: magic[FAKE_INITIALIZER](p: PropertyMetadata) -> <v1>
0 <v2>: Int NEW: r(0) -> <v2>
<v0>: {<: Nothing?} NEW: magic[FAKE_INITIALIZER](_this: Nothing?) -> <v0>
<v1>: {<: KProperty<*>} NEW: magic[FAKE_INITIALIZER](p: KProperty<*>) -> <v1>
0 <v2>: Int NEW: r(0) -> <v2>
=====================
== a ==
val a = Delegate()