2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
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 := [];