Explorar o código

fix __define_feature__ argument

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
f7d0fdc140
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -1214,7 +1214,7 @@ module Printer = struct
 						Printf.sprintf "%s(%s)" (print_expr pctx e1) (print_exprs_named pctx ", " fields)
 				end
 			| "__define_feature__" ->
-				print_expr pctx (List.hd el)
+				print_expr pctx (match el with [_;e] -> e | _ -> assert false)
 			| "__call__" ->
 				begin match el with
 					| e1 :: el ->