Extract Function: Fix replacement of type references and constructor references

This commit is contained in:
Alexey Sedunov
2014-05-26 14:51:45 +04:00
parent 3d6fc6e015
commit 4463c67e28
18 changed files with 217 additions and 23 deletions
@@ -1 +1 @@
class foo.A will no longer be accessible after extraction
Cannot extract method since following types are not denotable in the target scope: foo.A
@@ -1 +1 @@
class foo.A will no longer be accessible after extraction
Cannot extract method since following types are not denotable in the target scope: foo.A
@@ -0,0 +1,8 @@
// SIBLING:
fun foo(a: Int): Int {
object A {
fun bar(): Int = a + 10
}
return <selection>A.bar()</selection>
}
@@ -0,0 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.A