[FIR] Report type-parameterized implicit invoke call over type-parameterized property access
^KT-59988
This commit is contained in:
committed by
Space Team
parent
86c09a1c78
commit
f5168527ae
@@ -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> {}
|
||||
}
|
||||
@@ -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> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user