Function type change in Ast