[NI] Avoid forcing resolve for array access expression

#KT-31606 Fixed
 #EA-126523 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-05-26 02:05:01 +03:00
parent fe5976d7f4
commit 95710f4087
6 changed files with 98 additions and 8 deletions
@@ -0,0 +1,18 @@
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KProperty1
class Sample(val str: String)
class Inv<T>
class Form {
operator fun <F> get(field: KProperty1<*, F>): Inv<F> = TODO()
}
fun <K> foo(i: Inv<K>) {}
fun test(f: Form) {
foo(f[Sample::str])
}