Fixed auto-import of operator functions broken before + fixed bug in its implementation

This commit is contained in:
Valentin Kipyatkov
2014-12-03 21:09:29 +03:00
parent 3161eb284b
commit 7ba11b0f2f
5 changed files with 44 additions and 9 deletions
@@ -0,0 +1,16 @@
// "Import" "false"
// ACTION: Create function 'inc'
// ACTION: Create local variable '++'
// ACTION: Create parameter '++'
// ACTION: Inspection 'UNUSED_CHANGED_VALUE' options
// ACTION: Replace overloaded operator with function call
// ERROR: Unresolved reference: ++
package h
trait H
fun f(h: H?) {
var h1 = h
h1<caret>++
}
@@ -0,0 +1,4 @@
package util
fun h.H.inc(p: Int): h.H {
}