Files
kotlin-fork/compiler/testData/resolve/Namespaces.jet
T
Nikolay Krasko 4d19fd05b1 KT-1702 Renaming file causes "Operation not supported" and invalid imports
(Rename problem was caused because of invalid reference to file from package. Fix contains:
 - Change structure of references in package expression - last part is also a reference now
 - Resolve packages to expression but not to files)

  #KT-1702 fixed
2012-04-06 14:46:23 +04:00

21 lines
285 B
Plaintext

// FILE: f.kt
package ~a~a
import java.*
~a.a~val a : util.List<Int>? = null
val y : Any? = `a.b`b
// FILE: f.kt
package a
import java.util.*
~a.b~val b : List<Int>? = null
val x = `a.a`a
// FILE: f.kt
package root
val x = `a`a.`a.a`a
val y = `a`a.`a.b`b