Browse Source

minor fix : treat TMono same as TDynamic

Nicolas Cannasse 16 năm trước cách đây
mục cha
commit
b2ef697ab9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      genswf9.ml

+ 1 - 1
genswf9.ml

@@ -228,7 +228,7 @@ let rec type_id ctx t =
 
 let type_opt ctx t =
 	match follow t with
-	| TDynamic _ -> None
+	| TDynamic _ | TMono _ -> None
 	| _ -> Some (type_id ctx t)
 
 let type_void ctx t =