Added separate highlighting keys for variables invoked as function and function-like.
This commit is contained in:
@@ -7,7 +7,7 @@ val <info>property</info> = {}
|
||||
|
||||
fun foo(param: (Int) -> Int, functionLike: FunctionLike) {
|
||||
<info descr="Calling parameter as function">param</info>(1)
|
||||
<info descr="Calling parameter as function">functionLike</info>()
|
||||
<info descr="Calling parameter as function-like">functionLike</info>()
|
||||
|
||||
val v1 = param
|
||||
var v2 = param
|
||||
@@ -15,5 +15,7 @@ fun foo(param: (Int) -> Int, functionLike: FunctionLike) {
|
||||
<info descr="Calling variable as function">v1</info>(1)
|
||||
<info descr="Calling variable as function">v2</info>(1)
|
||||
|
||||
<info descr="Calling property as function">property</info>()
|
||||
<info descr="Calling property as function">property</info>();
|
||||
|
||||
{}() //should not be highlighted as "calling variable as function"
|
||||
}
|
||||
Reference in New Issue
Block a user