Update IDE tests to use KProperty instead of PropertyMetadata
This commit is contained in:
+3
-1
@@ -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()
|
||||
|
||||
Vendored
+4
-3
@@ -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
|
||||
|
||||
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user