Skip to content

Commit

Permalink
修改了HashSet无法编译的问题,给IEnumerator增加一个接口来workaround[#3224](HaxeFoundation…
Browse files Browse the repository at this point in the history
  • Loading branch information
zxiy committed Aug 5, 2014
1 parent 7e88468 commit cb71553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/system/collections/generic/HashSet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ extern class HashSet<T> extends dotnet.system.Object implements IEnumerable<T>
public var Count(default,never) : Int;
public var Comparer(default,never) : IEqualityComparer<T>;

@:overload(function(item:T) : Void {})
public function Add(item:T) : Bool;
@:overload(function(item:T) : Bool {} )
public function Add(item:T) : Void;

public function Clear() : Void;

Expand Down
3 changes: 3 additions & 0 deletions dotnet/system/collections/generic/IEnumerator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ package dotnet.system.collections.generic;

@:native("System.Collections.Generic.IEnumerator")
extern interface IEnumerator<T> extends dotnet.system.IDisposable extends dotnet.system.collections.IEnumerator {

var Current(default, null) : T;

}

0 comments on commit cb71553

Please sign in to comment.