Fixed bug in import insertion: it did not work with descriptors taken before modifications

This commit is contained in:
Valentin Kipyatkov
2015-02-09 18:57:40 +03:00
parent 7a4b291c85
commit 4fff1f44bb
5 changed files with 26 additions and 4 deletions
@@ -0,0 +1,4 @@
package bar
class Class1
class Class2
@@ -0,0 +1,4 @@
// ALL_UNDER_IMPORTS: true
package foo
<selection>fun foo(p: bar.Class1): bar.Class2 { }</selection>
@@ -0,0 +1,6 @@
// ALL_UNDER_IMPORTS: true
package foo
import bar.*
fun foo(p: Class1): Class2 { }