I declared this variable in one file:
internal var globalScope: GlobalScope? = null
get() = field!!
And in the same package, whenever I use this globalScope
variable, it is still considered a GlobalScope?
.
What is the best way to resolve this type conflict? Should I define another API that returns a GlobalScope
?