Просмотр исходного кода

disable check for `var v:Void` for now (#6201)

Aleksandr Kuzmenko 6 лет назад
Родитель
Сommit
3b1aa2b9a7

+ 3 - 2
src/typing/typeloadFunction.ml

@@ -29,10 +29,11 @@ open Common
 open Error
 
 let type_function_arg ctx t e opt p =
-	delay ctx PTypeField (fun() ->
+	(* TODO https://github.com/HaxeFoundation/haxe/issues/8461 *)
+	(* delay ctx PTypeField (fun() ->
 		if ExtType.is_void (follow t) then
 			error "Arguments of type Void are not allowed" p
-	);
+	); *)
 	if opt then
 		let e = (match e with None -> Some (EConst (Ident "null"),null_pos) | _ -> e) in
 		ctx.t.tnull t, e

+ 0 - 0
tests/misc/projects/Issue6201/compile1-fail.hxml → tests/misc/projects/Issue6201/compile1-fail.hxml.disabled