Commit delegation expression's trace with errors if we couldn't extract type info for it

^KT-44843 Fixed
This commit is contained in:
Victor Petukhov
2021-09-22 13:50:13 +03:00
parent 561ef5947a
commit 2bdbbdd1a7
8 changed files with 107 additions and 3 deletions
@@ -0,0 +1,25 @@
// WITH_RUNTIME
// FILE: test.kt
val bar2 by bar2(<!NO_VALUE_FOR_PARAMETER!>)<!>
// FILE: lt/neworld/compiler/Foo.kt
package lt.neworld.compiler
class Foo {
val bar by bar(<!NO_VALUE_FOR_PARAMETER!>)<!>
}
// FILE: lt/neworld/compiler/bar/Bar.kt
package lt.neworld.compiler.bar
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
fun <T, V> bar() = Bar<T, V>()
class Bar<T, V> : ReadOnlyProperty<T, V> {
override fun getValue(thisRef: T, property: KProperty<*>): V {
TODO("Not yet implemented")
}
}