New J2K: do not print qualified names if corresponding qualifier can unambiguously resolved

This speeds up shortening qualified references phase
This commit is contained in:
Ilya Kirillov
2019-09-27 19:18:36 +03:00
parent 678cc35008
commit 043a669812
20 changed files with 148 additions and 56 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import A.I
open class A {
interface I {
fun f()
@@ -6,5 +8,5 @@ open class A {
class B : A()
class Test {
var z: A.I? = null
var z: I? = null
}
+3 -1
View File
@@ -1,5 +1,7 @@
import Foo.SomeClass
internal interface FooInterface {
fun foo(): ArrayList<out Foo.SomeClass?>?
fun foo(): ArrayList<out SomeClass?>?
}
class Foo : FooInterface {