Report more specific diagnostic for variable + invoke calls
Do not report same set of diagnostics for variable call if actual error was happened with a function candidate. Here the candidate is invoke function on DeepRecursiveFunction ^KT-40991 Fixed ^KT-41491 Fixed ^KT-40926 In Progress
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
object Scope1 {
|
||||
val someVar: Any = Any()
|
||||
|
||||
fun foo() {
|
||||
<!FUNCTION_EXPECTED!>someVar<!>(1)
|
||||
}
|
||||
}
|
||||
|
||||
object Scope2 {
|
||||
class Foo
|
||||
|
||||
fun use() {
|
||||
val foo = Foo()
|
||||
<!FUNCTION_EXPECTED!>foo<!>()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user