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:
@@ -35,7 +35,7 @@ object N {
|
||||
//FILE:b.kt
|
||||
package b
|
||||
|
||||
import b.<!CANNOT_IMPORT_FROM_ELEMENT!>N<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>M<!>
|
||||
import b.N.M
|
||||
import b.A.P
|
||||
import b.A.B
|
||||
|
||||
@@ -45,7 +45,7 @@ fun foo() {
|
||||
|
||||
P.foo()
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>M<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>bar<!>()
|
||||
M.bar()
|
||||
}
|
||||
|
||||
class A() {
|
||||
|
||||
Reference in New Issue
Block a user