Fix Function statement not at top level of a program or function is prohibited warning
Fix Function statement not at top level of a program or function is prohibited warning

AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,EGreg/Platform,AndreyTepaykin/Platform,Qbix/Platform,EGreg/Platform,Qbix/Platform,EGreg/Platform,Qbix/Platform,Qbix/Platform,EGreg/Platform