Create Function From Usage: Fix availability condition
This commit is contained in:
+14
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user