Explorar o código

added @:generic to cpp/FastIterator.hx

Simon Krajewski %!s(int64=13) %!d(string=hai) anos
pai
achega
c7286f20bc
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      std/cpp/FastIterator.hx

+ 4 - 1
std/cpp/FastIterator.hx

@@ -1,6 +1,9 @@
 package cpp;
 
-extern class FastIterator<T> implements haxe.rtti.Generic
+#if haxe3
+@:generic
+#end
+extern class FastIterator<T> #if !haxe3 implements haxe.rtti.Generic #end
 {
 	public function hasNext():Bool;
 	public function next():T;