Browse Source

[xml] do not wrap optional args type with <x path="Null">

Rudy Ges 1 year ago
parent
commit
8e1af8fea9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/codegen/genxml.ml

+ 1 - 1
src/codegen/genxml.ml

@@ -70,7 +70,7 @@ let tpath t =
 	real_path i.mt_path i.mt_meta
 	real_path i.mt_path i.mt_meta
 
 
 let rec follow_param t =
 let rec follow_param t =
-	match t with
+	match (follow_lazy t) with
 	| TMono r ->
 	| TMono r ->
 		(match r.tm_type with
 		(match r.tm_type with
 		| Some t -> follow_param t
 		| Some t -> follow_param t