more thorough checks for theory name consistency (for extend, not just merge);
authorwenzelm
Wed, 16 May 2018 15:18:12 +0200
changeset 68193 14dd78f036ba
parent 68192 73a1b393d6f9
child 68194 796f2585c7ee
more thorough checks for theory name consistency (for extend, not just merge);
src/Pure/context.ML
--- a/src/Pure/context.ML	Tue May 15 17:07:41 2018 +0200
+++ b/src/Pure/context.ML	Wed May 16 15:18:12 2018 +0200
@@ -359,7 +359,7 @@
 
 val update_thy = change_thy false;
 val extend_thy = update_thy I;
-val finish_thy = change_thy true I;
+val finish_thy = change_thy true I #> tap extend_thy;
 
 end;
 
@@ -399,7 +399,7 @@
 
       val history = make_history name 0;
       val ancestry = make_ancestry parents ancestors;
-    in create_thy ids history ancestry (data_of thy0) end;
+    in create_thy ids history ancestry (data_of thy0) |> tap finish_thy end;
 
 end;