Selaa lähdekoodia

get rid of silly argument name shortening in .bind()

Dan Korostelev 8 vuotta sitten
vanhempi
commit
83f66243c4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/typing/typer.ml

+ 1 - 1
src/typing/typer.ml

@@ -1579,7 +1579,7 @@ let type_bind ctx (e : texpr) (args,ret) params p =
 	let vexpr v = mk (TLocal v) v.v_type p in
 	let vexpr v = mk (TLocal v) v.v_type p in
 	let acount = ref 0 in
 	let acount = ref 0 in
 	let alloc_name n =
 	let alloc_name n =
-		if n = "" || String.length n > 2 && not ctx.is_display_file then begin
+		if n = "" && not ctx.is_display_file then begin
 			incr acount;
 			incr acount;
 			"a" ^ string_of_int !acount;
 			"a" ^ string_of_int !acount;
 		end else
 		end else