소스 검색

added missing semicolons to Printer.hx (fixed issue #1758)

Simon Krajewski 12 년 전
부모
커밋
bdbb7b2ea3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      std/haxe/macro/Printer.hx

+ 2 - 2
std/haxe/macro/Printer.hx

@@ -182,10 +182,10 @@ class Printer {
 				cl.map(function(c)
 					return 'case ${printExprs(c.values, ",")}'
 						+ (c.guard != null ? 'if(${printExpr(c.guard)}):' : ":")
-						+ (opt(c.expr, printExpr)))
+						+ (opt(c.expr, printExpr))) + ";"
 				.join('\n$tabs');
 			if (edef != null)
-				s += '\n${tabs}default:' + (edef.expr == null ? "" : printExpr(edef));
+				s += '\n${tabs}default:' + (edef.expr == null ? "" : printExpr(edef)) + ";";
 			tabs = old;
 			s + '\n$tabs}';
 		case ETry(e1, cl):