Przeglądaj źródła

FastCell fix (fixed issue #1049)

Simon Krajewski 13 lat temu
rodzic
commit
149e122a59
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      std/haxe/FastList.hx

+ 4 - 1
std/haxe/FastList.hx

@@ -24,7 +24,10 @@
  */
 package haxe;
 
-class FastCell<T> #if (flash9 || cpp) implements haxe.rtti.Generic #end {
+#if (haxe3 && (flash9 || cpp))
+@:generic
+#end
+class FastCell<T> #if (!haxe3 && (flash9 || cpp)) implements haxe.rtti.Generic #end {
 	public var elt : T;
 	public var next : FastCell<T>;
 	public function new(elt,next) { this.elt = elt; this.next = next; }