Create from Usage: Fix rendering of receiver type reference

#KT-9559 Fixed
This commit is contained in:
Alexey Sedunov
2015-10-16 14:09:39 +03:00
parent c2c8eccc77
commit 84aa4e7664
10 changed files with 79 additions and 7 deletions
@@ -0,0 +1,15 @@
// "Create extension function 'foo'" "true"
// ERROR: Unresolved reference: foo
import package1.A
class X {
init {
val y = package2.A()
y.foo()
}
}
fun package2.A.foo() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
@@ -0,0 +1,3 @@
package package1
class A
@@ -0,0 +1,3 @@
package package2
class A
@@ -0,0 +1,11 @@
// "Create extension function 'foo'" "true"
// ERROR: Unresolved reference: foo
import package1.A
class X {
init {
val y = package2.A()
y.<caret>foo()
}
}