Explorar o código

avoid unused code warnings for $type (closes #5975)

Simon Krajewski %!s(int64=8) %!d(string=hai) anos
pai
achega
082fd53d22
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/typing/typer.ml

+ 1 - 0
src/typing/typer.ml

@@ -4108,6 +4108,7 @@ and type_call ctx e el (with_type:with_type) p =
 	| (EConst (Ident "$type"),_) , [e] ->
 		let e = type_expr ctx e Value in
 		ctx.com.warning (s_type (print_context()) e.etype) e.epos;
+		let e = Display.Diagnostics.secure_generated_code ctx e in
 		e
 	| (EField(e,"match"),p), [epat] ->
 		let et = type_expr ctx e Value in