Update IDE tests to use KProperty instead of PropertyMetadata

This commit is contained in:
Alexander Udalov
2015-10-13 16:47:47 +03:00
parent 51bf68ce27
commit 6a965c9a06
31 changed files with 124 additions and 77 deletions
@@ -1,5 +1,7 @@
package dependentOnFile
import kotlin.reflect.KProperty
fun main(args: Array<String>) {
//Breakpoint!
args.size()
@@ -25,7 +27,7 @@ val Int.testExtVal: Int get() = 1
val testDelVal by Delegate()
class Delegate {
fun getValue(a: Any?, b: PropertyMetadata) = 1
fun getValue(a: Any?, b: KProperty<*>) = 1
}
// EXPRESSION: TestClass().testFun()
@@ -1,6 +1,7 @@
package delegatedPropertyInClass
import kotlin.properties.Delegates
import kotlin.reflect.KProperty
fun main(args: Array<String>) {
val a = A()
@@ -14,11 +15,11 @@ class A {
}
class MyDelegate {
fun getValue(t: Any?, p: PropertyMetadata): Int = 1
fun getValue(t: Any?, p: KProperty<*>): Int = 1
}
class MyDelegateThrowsException {
fun getValue(t: Any?, p: PropertyMetadata): Int = throw IllegalStateException()
fun getValue(t: Any?, p: KProperty<*>): Int = throw IllegalStateException()
}
// PRINT_FRAME
// PRINT_FRAME
@@ -1,6 +1,7 @@
package delegatedPropertyInClassWoRenderer
import kotlin.properties.Delegates
import kotlin.reflect.KProperty
fun main(args: Array<String>) {
val a = A()
@@ -13,8 +14,8 @@ class A {
}
class MyDelegate {
fun getValue(t: Any?, p: PropertyMetadata): Int = 1
fun getValue(t: Any?, p: KProperty<*>): Int = 1
}
// RENDER_DELEGATED_PROPERTIES: false
// PRINT_FRAME
// PRINT_FRAME