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
+1 -1
View File
@@ -6,7 +6,7 @@ import c.<!CANNOT_IMPORT_ON_DEMAND_FROM_SINGLETON!>M<!>.*
fun foo() {
val <!UNUSED_VARIABLE!>b<!>: B = B()
var <!UNUSED_VARIABLE!>r<!>: <!UNRESOLVED_REFERENCE!>R<!> = <!UNRESOLVED_REFERENCE!>R<!>()
var <!UNUSED_VARIABLE!>r<!>: R = R()
}
class A() {
+1 -1
View File
@@ -14,7 +14,7 @@ val y: T = Y
fun f() {
<!UNRESOLVED_REFERENCE!>bar<!>()
R.bar()
<!UNRESOLVED_REFERENCE!>B<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>foo<!>()
B.foo()
}
object M {