Explorar o código

switch cases can be empty

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
1f9d138da3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 ->