--- a/src/Pure/Tools/codegen_package.ML Sat Dec 09 18:05:40 2006 +0100
+++ b/src/Pure/Tools/codegen_package.ML Sat Dec 09 18:05:41 2006 +0100
@@ -211,7 +211,7 @@
let
val c' = CodegenConsts.norm_of_typ thy (c, ty_ctxt)
val idf = CodegenNames.const thy c';
- val ty_decl = Consts.declaration consts idf;
+ val ty_decl = Consts.the_declaration consts idf;
val insts = (op ~~ o apsnd (map (snd o dest_TVar)) oo pairself)
(curry (Consts.typargs consts) idf) (ty_ctxt, ty_decl);
val _ = if exists not (map (Sign.of_sort thy) insts)