Writing a static function

You are missing parentheses in the function definition:
function global_fct()

The no-parentheses version can only be written
function foo end
(hence it complaining about the missing end) and is used to define a function but not define any methods. This is common to do for abstract interfaces so that concrete implementations can add methods later.

3 Likes