Add common JetElement for imports: JetImportList

This commit is contained in:
Natalia Ukhorskaya
2013-10-23 18:07:22 +04:00
parent 796dad5798
commit 3287744415
24 changed files with 550 additions and 343 deletions
@@ -0,0 +1,12 @@
package sometest
import java.util.ArrayList
import java.util.HashSet
import java.util.HashMap
val some: HashSet<Int>? = null
val some2: HashMap<Int, Int>? = null
// SET_TRUE: setCollapseImports
// REGION BEFORE: 25:94
// REGION AFTER: 25:67
@@ -2,6 +2,7 @@
// ERROR: 'f' overrides nothing
// ERROR: 'f' overrides nothing
import a.B
class BB : B() {
<caret>override fun f() {}
}
@@ -2,14 +2,10 @@
package a
import java.util.Collections
package b {
import java.util.List
class M {
trait A {
val l: jet.List<Int><caret>
}
}
}
@@ -2,14 +2,10 @@
package a
import java.util.Collections
package b {
import java.util.List
class M {
trait A {
val l = <caret>Collections.emptyList<Int>()
}
}
}