[FIR] Implement CANNOT_ALL_UNDER_IMPORT_FROM_SINGLETON diagnostic
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
// import all members from companion object
|
||||
package c
|
||||
|
||||
import c.A.Companion.B
|
||||
import c.M.*
|
||||
|
||||
fun foo() {
|
||||
val b: B = B()
|
||||
var r: R = R()
|
||||
}
|
||||
|
||||
class A() {
|
||||
companion object {
|
||||
class B() {
|
||||
companion object {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object M {
|
||||
fun foo() {}
|
||||
class R() {}
|
||||
}
|
||||
Reference in New Issue
Block a user