diff src/monoize.sml @ 908:ed06e25c70ef

Convert to requiring explicit 'rpc' marker
author Adam Chlipala <adamc@hcoop.net>
date Sat, 22 Aug 2009 12:55:18 -0400
parents 5fe49effbc83
children 8e540df3294d
line wrap: on
line diff
--- a/src/monoize.sml	Tue Aug 11 12:01:54 2009 -0400
+++ b/src/monoize.sml	Sat Aug 22 12:55:18 2009 -0400
@@ -3137,7 +3137,7 @@
                 ((L'.ELet (x, t', e1, e2), loc), fm)
             end
 
-          | L.EServerCall (n, es, ek, t) =>
+          | L.EServerCall (n, es, ek, t, (L.TRecord (L.CRecord (_, []), _), _)) =>
             let
                 val t = monoType env t
                 val (_, ft, _, name) = Env.lookupENamed env n
@@ -3192,6 +3192,9 @@
             in
                 (e, fm)
             end
+          | L.EServerCall _ => (E.errorAt loc "Full scope of server call continuation isn't known";
+                                Print.eprefaces' [("Expression", CorePrint.p_exp env all)];
+                                (dummyExp, fm))
 
           | L.EKAbs _ => poly ()
           | L.EKApp _ => poly ()