Parcourir la source

[cpp] Return pseudo-void from IntMap.set Dynamic case. Closes #3374

hughsando il y a 11 ans
Parent
commit
f10b7944b9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      std/cpp/_std/haxe/ds/IntMap.hx

+ 1 - 1
std/cpp/_std/haxe/ds/IntMap.hx

@@ -36,7 +36,7 @@ package haxe.ds;
   inline void set(int key, ::String value) { __int_hash_set_string(h,key,value); }
 
   template<typename VALUE>
-  inline void set(Dynamic &key, const VALUE &value) { set( (int)key, value ); }
+  inline Void set(Dynamic &key, const VALUE &value) { set( (int)key, value ); return null(); }
 ")
 @:coreApi class IntMap<T> implements haxe.Constraints.IMap<Int,T> {