src/Pure/sign.ML
changeset 30146 a77fc0209723
parent 29606 fedb8be05f24
child 30218 cdd82ba2b4fd
--- a/src/Pure/sign.ML	Fri Feb 27 16:33:11 2009 +0100
+++ b/src/Pure/sign.ML	Fri Feb 27 16:38:52 2009 +0100
@@ -338,7 +338,7 @@
     fun typ_of (_, Const (_, T)) = T
       | typ_of (_, Free  (_, T)) = T
       | typ_of (_, Var (_, T)) = T
-      | typ_of (bs, Bound i) = snd (List.nth (bs, i) handle Subscript =>
+      | typ_of (bs, Bound i) = snd (nth bs i handle Subscript =>
           raise TYPE ("Loose bound variable: B." ^ string_of_int i, [], [Bound i]))
       | typ_of (bs, Abs (x, T, body)) = T --> typ_of ((x, T) :: bs, body)
       | typ_of (bs, t $ u) =