[FIR] Report wrong modifiers in function type arguments and types of value parameters

#KT-59955
This commit is contained in:
Evgeniy.Zhelenskiy
2023-10-05 18:41:56 +02:00
committed by Space Team
parent 43c97077eb
commit feed3a57d0
18 changed files with 183 additions and 124 deletions
@@ -1,6 +0,0 @@
fun <T> Array<T>.foo() {}
fun test(array: Array<out Int>) {
array.foo()
array.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foo<!><<!PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT!>out Int<!>>()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun <T> Array<T>.foo() {}
fun test(array: Array<out Int>) {