浏览代码

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

hughsando 11 年之前
父节点
当前提交
f10b7944b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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> {