[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+18
@@ -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])
|
||||
}
|
||||
Reference in New Issue
Block a user