pub fn expression_types( expr: &Expr, registry: &SymbolRegistry, locals: &SymbolTable, ) -> Vec<Type>