Преглед на файлове

allow recursive proxys.

Nicolas Cannasse преди 19 години
родител
ревизия
652664abb6
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      typer.ml

+ 3 - 1
typer.ml

@@ -426,8 +426,10 @@ and reverse_param (v,t) =
 	TPType (v , reverse_type t)
 
 let extend_remoting ctx c t p async prot =
-	if ctx.isproxy then error "Cascading proxys can result in infinite loops, please use conditional compilation to prevent this proxy access" p;
 	if c.cl_super <> None then error "Cannot extend several classes" p;
+	if ctx.isproxy then 
+		() (* skip this proxy generation, we shouldn't need it anyway *)
+	else
 	let ctx2 = context ctx.error ctx.warn in
 	let fb = !forbidden_packages in
 	forbidden_packages := [];