Nicolas Cannasse 13 anni fa
parent
commit
6a02a986f6
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      std/haxe/web/Dispatch.hx

+ 2 - 2
std/haxe/web/Dispatch.hx

@@ -273,7 +273,7 @@ class Dispatch {
 				Context.error("Unsupported dispatch type "+e.toString(),p);
 			}
 		case TAbstract(a,_):
-			switch( i.toString() ) {
+			switch( a.toString() ) {
 			case "Int":
 				return MRInt;
 			case "Float":
@@ -281,7 +281,7 @@ class Dispatch {
 			case "Bool":
 				return MRBool;
 			default:
-				Context.error("Unsupported dispatch type "+i.toString(),p);
+				Context.error("Unsupported dispatch type "+a.toString(),p);
 			}
 		default:
 			Context.error("Unsupported dispatch type "+Std.string(t),p);