فهرست منبع

minor (fixed issue #1384)

Simon Krajewski 12 سال پیش
والد
کامیت
3d943416f4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      matcher.ml

+ 1 - 1
matcher.ml

@@ -940,7 +940,7 @@ let match_expr ctx e cases def with_type p =
 			List.map (fun e -> type_expr ctx e Value) el
 		| _ ->
 			let e = type_expr ctx e Value in
-			begin match e.etype with
+			begin match follow e.etype with
 			| TEnum(en,_) when PMap.is_empty en.e_constrs || has_meta ":fakeEnum" en.e_meta ->
 				raise Exit
 			| _ ->