Function type and missing variable