Create Function From Usage: Fix availability condition

This commit is contained in:
Alexey Sedunov
2014-09-29 20:08:53 +04:00
parent a6ba3a569d
commit 854962a139
3 changed files with 36 additions and 1 deletions
@@ -0,0 +1,14 @@
// "Create function 'foo' from usage" "false"
// ACTION: Convert to expression body
// ACTION: Replace with infix function call
// ERROR: Unresolved reference: x
class A<T>(val n: T) {
fun foo(p: Int) {
}
}
fun test() {
A(1).<caret>foo(x)
}