Explorar o código

disable `null.field` checks for now (see #4072)

Simon Krajewski %!s(int64=10) %!d(string=hai) anos
pai
achega
1834e86a4d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      filters.ml

+ 3 - 1
filters.ml

@@ -7,7 +7,9 @@ open Typecore
 
 
 let rec verify_ast ctx e =
 let rec verify_ast ctx e =
 	let not_null e e1 = match e1.eexpr with
 	let not_null e e1 = match e1.eexpr with
-		| TConst TNull -> display_error ctx ("Invalid null expression: " ^ (s_expr_pretty "" (s_type (print_context())) e)) e.epos
+		| TConst TNull ->
+			(* TODO: https://github.com/HaxeFoundation/haxe/issues/4072 *)
+			(* display_error ctx ("Invalid null expression: " ^ (s_expr_pretty "" (s_type (print_context())) e)) e.epos *)
 		| _ -> ()
 		| _ -> ()
 	in
 	in
 	let rec loop e = match e.eexpr with
 	let rec loop e = match e.eexpr with