Change importing rules for objects:

Allow importing classes from object, prohibit import-on-demand from objects
It's unclear what import-on-demand from object should mean so we prohibit it for now
This commit is contained in:
Pavel V. Talanov
2015-02-17 16:39:39 +03:00
parent 2e208c4294
commit 88c5379424
11 changed files with 214 additions and 14 deletions
@@ -70,7 +70,7 @@ fun bar() {}
//FILE:c.kt
package c
import c.<!CANNOT_IMPORT_FROM_ELEMENT!>C<!>.*
import c.<!CANNOT_IMPORT_ON_DEMAND_FROM_SINGLETON!>C<!>.*
object C {
fun f() {