Create from Usage: Forbid for parameters/local variables when reference is not an identifier

#KT-9305 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-25 15:38:19 +03:00
parent 0ef8281823
commit aa080bf201
6 changed files with 39 additions and 3 deletions
@@ -0,0 +1,11 @@
// "Create parameter '-'" "false"
// ACTION: Create extension function 'minus'
// ACTION: Create member function 'minus'
// ACTION: Replace overloaded operator with function call
// ERROR: Unresolved reference: -
class A
fun bar() {
val a = A()
return a <caret>- a
}