Colton Idle
01/21/2021, 7:04 PMclass Blah {
companion object {
//HERE
}
fun somemethod2(){
//THERE
}
}
How can I define a variable that can be used in "HERE" and "THERE"?
I know I can define val MY_CONST
to the top of the file (outside of class declaration) but doesn't that make it global to all my classes? I just want it in the scope of the companion and the class.Luke
01/21/2021, 7:07 PMColton Idle
01/21/2021, 7:18 PMVampire
01/21/2021, 10:01 PM