Browse Source

[cs] added handling of Bool to Type.getClassName() and Type.resolveClass() (fixes #6875)

Alexander Kuzmenko 7 năm trước cách đây
mục cha
commit
9f439e8a85
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      std/cs/_std/Type.hx

+ 2 - 0
std/cs/_std/Type.hx

@@ -76,6 +76,7 @@ enum ValueType {
 			case "System.Int32": "Int";
 			case "System.Double": "Float";
 			case "System.String": "String";
+			case "System.Boolean": "Bool";
 			case "System.Object": "Dynamic";
 			case "System.Type": "Class";
 			default: cast(ret,cs.system.String).Split(cs.NativeArray.make(("`".code : cs.StdTypes.Char16)))[0];
@@ -119,6 +120,7 @@ enum ValueType {
 				case #if no_root "haxe.root.Class" #else "Class" #end: return cast Class;
 				case #if no_root "haxe.root.Dynamic" #else "Dynamic" #end: return cast Dynamic;
 				case #if no_root "haxe.root.String" #else "String" #end: return cast String;
+				case #if no_root "haxe.root.Bool" #else "Bool" #end: return cast Bool;
 				default: return null;
 			}
 #if !erase_generics