Create from Usage: Forbid "Create local variable/parameter/property" on callable references
#KT-10283 In Progress
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Create parameter 'foo'" "false"
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Add 'f =' to argument
|
||||
// ERROR: Unresolved reference: foo
|
||||
fun test(f: (Int) -> Int) {}
|
||||
|
||||
fun refer() {
|
||||
val v = test(::<caret>foo)
|
||||
}
|
||||
Reference in New Issue
Block a user