Browse Source

reverting "me" changes

Simon Krajewski 13 years ago
parent
commit
4faa0650bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -605,7 +605,7 @@ let get_this ctx p =
 		if ctx.untyped then display_error ctx "Cannot access this in 'untyped' mode : use either '__this__' or var 'me = this' (transitional)" p;
 		if ctx.untyped then display_error ctx "Cannot access this in 'untyped' mode : use either '__this__' or var 'me = this' (transitional)" p;
 		let v = (match ctx.vthis with
 		let v = (match ctx.vthis with
 			| None ->
 			| None ->
-				let v = gen_local ctx ctx.tthis in
+				let v = add_local ctx "me" ctx.tthis in
 				ctx.vthis <- Some v;
 				ctx.vthis <- Some v;
 				v
 				v
 			| Some v -> v
 			| Some v -> v