hi all! I'm having the following code: ```object A...
# announcements
v
hi all! I'm having the following code:
Copy code
object A {
	val a = ...

   object B {
    	val b = ...
   }
}
and I'm accessing b like this:
A.B.b
(which is what I need) but I would like to move class B into another file, and still acces
b
the same way and I can't find the right way to define it I would like to have something like bellow (this is not a valid code):
Copy code
object A.B {	
    val b = ...
}
Is there a way to get something similar? Thank you in advance!
a
you can do this
Copy code
// B.kt
package sample

object B {
  val b = . . .
}


//A.kt
import sample.B as ObjB 
object A {
   val a = . . .
   val B = ObjB
}
👆🏻 1
v
that's exactlly what I needed, thank you so much!