New J2K: do not find import usages in AST building phase

It is a rather heavy operation and it increases conversion time
Related to #KT-31848
This commit is contained in:
Ilya Kirillov
2019-06-08 20:53:02 +03:00
parent d0e3ab1beb
commit 5f8b5efd66
26 changed files with 62 additions and 40 deletions
+2
View File
@@ -1,6 +1,8 @@
// 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() {
+1 -3
View File
@@ -1,5 +1,3 @@
import kotlin.collections.Map.Entry
class A {
internal fun foo(o: Entry<Any?, Any?>?) {}
internal fun foo(o: Map.Entry<Any?, Any?>?) {}
}