just error, not a failed attempt to raise an exception;
authorwenzelm
Mon, 03 Feb 2014 15:31:47 +0100
changeset 55302 d6f7418ea9dd
parent 55301 792f3cf59d95
child 55303 35354009ca25
just error, not a failed attempt to raise an exception;
src/Tools/subtyping.ML
--- a/src/Tools/subtyping.ML	Mon Feb 03 15:28:01 2014 +0100
+++ b/src/Tools/subtyping.ML	Mon Feb 03 15:31:47 2014 +0100
@@ -140,7 +140,7 @@
   (case (T, Type_Infer.deref tye U) of
     (TVar (xi, _), U) => [(xi, U)]
   | (Type (a, Ts), Type (b, Us)) =>
-      if a <> b then raise error (eval_err err) else inst_collects tye err Ts Us
+      if a <> b then error (eval_err err) else inst_collects tye err Ts Us
   | (_, U') => if T <> U' then error (eval_err err) else [])
 and inst_collects tye err Ts Us =
   fold2 (fn T => fn U => fn is => inst_collect tye err T U @ is) Ts Us [];