Create From Usage: Do not suggest Java classes as receiver type candidates (for now)

This commit is contained in:
Alexey Sedunov
2014-10-06 18:54:27 +04:00
parent 0dafcb6728
commit 77a5ddbcd0
6 changed files with 93 additions and 11 deletions
@@ -0,0 +1,10 @@
// "Create function 'foo' from usage" "true"
// ERROR: Unresolved reference: foo
fun test(): Int {
return A().foo(1, "2")
}
fun Any.foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -0,0 +1,6 @@
// "Create function 'foo' from usage" "true"
// ERROR: Unresolved reference: foo
fun test(): Int {
return A().<caret>foo(1, "2")
}