Browse Source

fix __define_feature__ argument

Simon Krajewski 11 years ago
parent
commit
f7d0fdc140
1 changed files with 1 additions and 1 deletions
  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 ->