Explorar o código

do not double-wrap empty blocks in mk_block. hope that won't break stuff, let's see what travis has to say

Dan Korostelev %!s(int64=11) %!d(string=hai) anos
pai
achega
42be1b96bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      type.ml

+ 1 - 1
type.ml

@@ -328,7 +328,7 @@ let mk e t p = { eexpr = e; etype = t; epos = p }
 
 let mk_block e =
 	match e.eexpr with
-	| TBlock (_ :: _) -> e
+	| TBlock _ -> e
 	| _ -> mk (TBlock [e]) e.etype e.epos
 
 let mk_cast e t p = mk (TCast(e,None)) t p