Create From Usage: Do not fail on qualifier receiver when it doesn't have type

This commit is contained in:
Alexey Sedunov
2014-10-02 18:31:18 +04:00
parent b680b74ecb
commit ae7c5e1323
4 changed files with 35 additions and 3 deletions
@@ -0,0 +1,10 @@
// "Create function 'foo' from usage" "false"
// ACTION: Replace with infix function call
// ACTION: Split property declaration
// ERROR: Unresolved reference: foo
class A<T>(val n: T)
fun test() {
val a: Int = A.<caret>foo(2)
}