New J2K: do not save import statements in files as we print fqNames for calls

This may cause conflicts on shortening fq references post-processing step
This commit is contained in:
Ilya Kirillov
2019-09-24 11:52:19 +03:00
parent e3b7b41544
commit f9fac0acf5
54 changed files with 54 additions and 162 deletions
-2
View File
@@ -1,8 +1,6 @@
// ERROR: The integer literal does not conform to the expected type CapturedType(*)
// ERROR: The integer literal does not conform to the expected type CapturedType(*)
// ERROR: Type argument is not within its bounds: should be subtype of 'String?'
import java.util.HashMap
internal class G<T : String?>(t: T)
class Java {
internal fun test() {
-2
View File
@@ -1,5 +1,3 @@
import java.util.ArrayList
internal object A {
@JvmStatic
fun main(args: Array<String>) {
-2
View File
@@ -1,7 +1,5 @@
package test
import java.util.HashMap
class TestPrimitiveFromMap {
fun foo(map: HashMap<String?, Int?>): Int {
return map["zzz"]!!
-2
View File
@@ -1,5 +1,3 @@
import java.util.HashMap
class TestMethodReference {
private val hashMap = HashMap<String, String>()
fun update(key: String, msg: String) {
-2
View File
@@ -1,5 +1,3 @@
import java.util.HashMap
class TestMethodReference {
private val hashMap = HashMap<String, String>()
fun update(key: String, msg: String) {
-2
View File
@@ -1,5 +1,3 @@
import java.util.ArrayList
internal interface FooInterface {
fun foo(): ArrayList<out Foo.SomeClass?>?
}
-2
View File
@@ -1,5 +1,3 @@
import java.util.HashMap
class TestClass {
private val hashMap: Map<String, List<Int>> = HashMap()
}
-1
View File
@@ -1,4 +1,3 @@
import java.util.ArrayList
import java.util.function.Consumer
internal class Test {
-2
View File
@@ -1,5 +1,3 @@
import java.util.ArrayList
internal class A {
var list: List<String> = ArrayList()
}