فهرست منبع

add missing display check

Simon Krajewski 9 سال پیش
والد
کامیت
db1ca7fe8b
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/typing/typeload.ml

+ 2 - 1
src/typing/typeload.ml

@@ -2185,7 +2185,8 @@ module ClassInitializer = struct
 		let t = cf.cf_type in
 
 		match e with
-		| None -> ()
+		| None ->
+			check_display (ctx,fctx) cf p
 		| Some e ->
 			if requires_value_meta ctx.com (Some c) then cf.cf_meta <- ((Meta.Value,[e],cf.cf_pos) :: cf.cf_meta);
 			let check_cast e =