Update example to handle stricter static function pre-declaration rules