Procházet zdrojové kódy

switch cases can be empty

Simon Krajewski před 11 roky
rodič
revize
1f9d138da3
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      genpy.ml

+ 2 - 1
genpy.ml

@@ -381,7 +381,8 @@ module Transformer = struct
 		in
 		let res = match rev_cases with
 			| [] ->
-				assert false
+				(* TODO: this can be handled better *)
+				null ae.a_expr.etype ae.a_expr.epos
 			| [case] ->
 				case_to_if case edef
 			| case :: cases ->