read_const: include type;
authorwenzelm
Tue, 07 Nov 2006 11:46:47 +0100
changeset 21205 dfe338ec9f9c
parent 21204 1e96553668c6
child 21206 2af4c7b3f7ef
read_const: include type;
src/Pure/consts.ML
--- a/src/Pure/consts.ML	Tue Nov 07 11:46:46 2006 +0100
+++ b/src/Pure/consts.ML	Tue Nov 07 11:46:47 2006 +0100
@@ -132,8 +132,8 @@
 fun read_const consts raw_c =
   let
     val c = intern consts raw_c;
-    val _ = the_const consts c handle TYPE (msg, _, _) => error msg;
-  in Const (c, dummyT) end;
+    val (((T, _), _), _) = the_const consts c handle TYPE (msg, _, _) => error msg;
+  in Const (c, T) end;
 
 
 (* certify *)