Home > Enterprise >  Android Studio - Why is this function not called?
Android Studio - Why is this function not called?

Time:11-09

I'm learning Android Studio & Kotlin and came across a interesting error. enter image description here

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

  • Related