Browse Source

fix invalid change to prevent recursive anonymous

Nicolas Cannasse 17 years ago
parent
commit
d387411877
2 changed files with 2 additions and 10 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 1 10
      type.ml

+ 1 - 0
doc/CHANGES.txt

@@ -3,6 +3,7 @@
 	fixed inline return bug
 	added haxe.rtti.Generic behavior
 	added haxe.FastList
+	bugfix to prevent recursive anonymous
 	TODO haxe/f9 : inline code can give bad file in debug infos
 	TODO haxe/f9 var x = if( true ) Math.POSITIVE_INFINITY : 0.; VerifyError
 

+ 1 - 10
type.ml

@@ -306,16 +306,7 @@ let rec link e a b =
 			with
 				Exit -> true
 	in
-	let rec mono_loop t =
-		if t == a then
-			true
-		else match t with
-		| TMono t -> (match !t with None -> false | Some t -> loop t)
-		| _ -> false
-	in
-	if mono_loop b then
-		true
-	else if loop b then
+	if loop b then
 		false
 	else
 		match b with