Create from Usage: Forbid "Create local variable/parameter/property" on callable references

#KT-10283 In Progress
This commit is contained in:
Alexey Sedunov
2015-12-07 15:16:22 +03:00
parent 44743aade5
commit 87aebd2cdf
7 changed files with 53 additions and 5 deletions
@@ -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)
}