소스 검색

added abstract basic types support

Nicolas Cannasse 13 년 전
부모
커밋
a733acf3e0
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      std/haxe/web/Dispatch.hx

+ 11 - 0
std/haxe/web/Dispatch.hx

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