[FIR] Report type-parameterized implicit invoke call over type-parameterized property access

^KT-59988
This commit is contained in:
Evgeniy.Zhelenskiy
2023-11-20 04:59:11 +01:00
committed by Space Team
parent 86c09a1c78
commit f5168527ae
14 changed files with 47 additions and 44 deletions
@@ -1,13 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// ISSUE: KT-40396
val <C> C.foo get() = Foo<C>()
class Foo<K> {
operator fun <T> invoke(body: () -> Unit) {}
}
class Bar {
val bar = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> {}
val baz = foo<Int> {}
}
+2 -1
View File
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// ISSUE: KT-40396
@@ -10,4 +11,4 @@ class Foo<K> {
class Bar {
val bar = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> {}
val baz = <!TYPE_ARGUMENTS_NOT_ALLOWED!>foo<!><Int> {}
}
}