KT-6628 Allow imports of classes from root package

#KT-6628 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-01-20 18:05:35 +03:00
parent fa779bbdd2
commit 77a560775f
31 changed files with 115 additions and 185 deletions
@@ -0,0 +1,28 @@
// FILE: rootPackage.kt
class ~k~Klass {
}
fun ~f~function() = ""
val ~p~property = ""
// FILE: anotherFromRootPackage.kt
fun foo() {
`k`Klass()
`f`function()
`p`property
}
// FILE: otherPackage.kt
package test
import `k`Klass
import `f`function
import `p`property
fun foo() {
`k`Klass()
`f`function()
`p`property
}