Browse Source

Revert "ECheckType adjustments"

This reverts commit b22bc3c3eb083de0c5bffdc5220f8b95b271d23d.
Simon Krajewski 12 years ago
parent
commit
6c1c23d84e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      std/haxe/macro/ExprTools.hx
  2. 1 1
      std/haxe/macro/Printer.hx

+ 1 - 1
std/haxe/macro/ExprTools.hx

@@ -185,7 +185,7 @@ class ExprTools {
 			case ECast(e, t): ECast(f(e), t);
 			case EDisplay(e, isCall): EDisplay(f(e), isCall);
 			case ETernary(econd, eif, eelse): ETernary(f(econd), f(eif), f(eelse));
-			case ECheckType(e, t, so): ECheckType(f(e), t, so);
+			case ECheckType(e, t): ECheckType(f(e), t);
 			case EDisplayNew(_),
 				EContinue,
 				EBreak:

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

@@ -201,7 +201,7 @@ class Printer {
 		case EDisplay(e1, _): '#DISPLAY(${printExpr(e1)})';
 		case EDisplayNew(tp): '#DISPLAY(${printTypePath(tp)})';
 		case ETernary(econd, eif, eelse): '${printExpr(econd)} ? ${printExpr(eif)} : ${printExpr(eelse)}';
-		case ECheckType(e1, ct, so): '#CHECK_TYPE(${printExpr(e1)}, ${printComplexType(ct)})';
+		case ECheckType(e1, ct): '#CHECK_TYPE(${printExpr(e1)}, ${printComplexType(ct)})';
 		case EMeta(meta, e1): printMetadata(meta) + " " +printExpr(e1);
 	}