Nicolas Cannasse 16 years ago
parent
commit
44bc6ed3c0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      std/haxe/rtti/HtmlEditor.hx

+ 2 - 4
std/haxe/rtti/HtmlEditor.hx

@@ -91,10 +91,8 @@ class HtmlEditor {
 		if( td == null ) throw "Missing type "+name;
 		if( !params.isEmpty() ) throw "Can't apply parameters";
 		return switch( td ) {
-			case TPackage(_,_,_): throw "assert";
-			case TClassdecl(c): CClass(c.path,params);
-			case TEnumdecl(e): CEnum(e.path,params);
-			case TTypedecl(t): CTypedef(t.path,params);
+			case TTypedecl(t): t.type;
+			default: throw "assert";
 		};
 	}