It seems as if Kotlins resolution rules (or those ...
# announcements
f
It seems as if Kotlins resolution rules (or those of the JVM, not sure) are broken in regards to aliased imports and private type aliases.
Copy code
// a.kt
private typealias X = Long
Copy code
// b.kt
private typealias X = Long
This won't compile and complains about redefinition and not having access ...
Copy code
import kotlin.Long as X
This would solve the previous problem but
kotlin.Long
is now inaccessible because it was overwritten for the complete file. Note that adding
import kotlin.Long
will be optimized away by IntelliJ and thus is not a feasible alternative to fixing this weird problem. I guess filing a bug is in order?!?