I'm learning Android Studio & Kotlin and came across a interesting error.
Notice how the squeezeState() is in red, or says that the function doesn't exist even though its at the bottom and has been declared properly. Why doesn't Kotlin pickup the function reference?
CodePudding user response:
I realise that this isn't JavaScript and that you need to declare the function before calling it