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:
+3
-1
@@ -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
@@ -1,5 +1,7 @@
|
||||
import Foo.SomeClass
|
||||
|
||||
internal interface FooInterface {
|
||||
fun foo(): ArrayList<out Foo.SomeClass?>?
|
||||
fun foo(): ArrayList<out SomeClass?>?
|
||||
}
|
||||
|
||||
class Foo : FooInterface {
|
||||
|
||||
Reference in New Issue
Block a user