Explorar o código

disable KGeneric when we don't have type parameters (fixed issue #333)

Nicolas Cannasse %!s(int64=13) %!d(string=hai) anos
pai
achega
f8ed4b7023
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      codegen.ml

+ 1 - 1
codegen.ml

@@ -450,7 +450,7 @@ let on_inherit ctx c p h =
 		extend_remoting ctx c t p true false;
 		false
 	| HImplements { tpackage = ["haxe";"rtti"]; tname = "Generic"; tparams = [] } ->
-		c.cl_kind <- KGeneric;
+		if c.cl_types <> [] then c.cl_kind <- KGeneric;
 		false
 	| HExtends { tpackage = ["haxe";"xml"]; tname = "Proxy"; tparams = [TPExpr(EConst (String file),p);TPType t] } ->
 		extend_xml_proxy ctx c t file p;