Import names from singleton but show CANNOT_IMPORT_ON_DEMAND_FROM_SINGLETON error

This commit is contained in:
Stanislav Erokhin
2015-09-04 21:17:28 +03:00
parent 5786e620e8
commit 286d39b866
6 changed files with 59 additions and 3 deletions
@@ -0,0 +1,20 @@
// FILE: a.kt
package a
object O {
class A
object B
fun bar() {}
}
// FILE: b.kt
package b
import a.<!CANNOT_IMPORT_ON_DEMAND_FROM_SINGLETON!>O<!>.*
fun test() {
A()
B
<!UNRESOLVED_REFERENCE!>bar<!>()
}