I'm new to Kotlin, and I don't understand if/how I can call a function or set a variable from the companion object:
class MyClass {
public var myVar: Boolean
public fun myFunc(): Int { ... }
companion object {
private fun doStuff(){
myVar = true
myFunc(1)
}
}
}
I get unresolvedReference on myVar = true
and myFunc(1)
.