ソースを参照

type hint `prev` var to avoid FAnon access (closes #3794)

Simon Krajewski 10 年 前
コミット
f58b0b810f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      std/haxe/ds/GenericStack.hx

+ 1 - 1
std/haxe/ds/GenericStack.hx

@@ -115,7 +115,7 @@ class GenericStack<T> {
 		If no matching element is found, false is returned.
 	**/
 	public function remove( v : T ) : Bool {
-		var prev = null;
+		var prev:GenericCell<T> = null;
 		var l = head;
 		while( l != null ) {
 			if( l.elt == v ) {