Explorar el Código

[java] rename `_` vars (closes #3392)

Simon Krajewski hace 9 años
padre
commit
2d00fb8019
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      filters.ml

+ 1 - 0
filters.ml

@@ -656,6 +656,7 @@ let rename_local_vars ctx e =
 			Type.iter loop e
 	in
 	declare (alloc_var "this" t_dynamic) Ast.null_pos; (* force renaming of 'this' vars in abstract *)
+	if ctx.com.platform = Java then declare (alloc_var "_" t_dynamic) Ast.null_pos; (* Java 8 hates _ *)
 	begin match ctx.curclass.cl_path with
 		| s :: _,_ | [],s -> declare (alloc_var s t_dynamic) Ast.null_pos
 	end;