diff --git a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy index 3526185..bf5b0a8 100644 --- a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy +++ b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy @@ -693,7 +693,7 @@ lemma*[e5::E] testtest : "xx + testtest_level = yy + testtest_level \Indeed this fails:\ (*lemma*[e6::E] testtest : "xx + the (level @{test2 \testtest2''\}) = yy + the (level @{test2 \testtest2''\}) \ xx = yy" by simp*) -text\Bug: Checking of text* type against declare_reference is not done. +text\Bug: Checking of \<^theory_text>\text*\ type against \<^theory_text>\declare_reference*\ is not done. Should be compatible with type unification mechanism. See the record package\ doc_class 'a AAA_test = aaa::"'a list" @@ -704,13 +704,13 @@ bbb::"'a list" declare_reference*[aaa_test::"'a::one AAA_test"] text\@{AAA_test (unchecked) \aaa_test\}\ -text\aaa_test should fail and trigger an error because its type was \<^typ>\'a::one AAA_test\ +text\\aaa_test\ should fail and trigger an error because its type was \<^typ>\'a::one AAA_test\ in the \<^theory_text>\declare_reference*\ command:\ (*text*[aaa_test::"'a::one BBB_test"]\\*) text*[aaa_test::"int AAA_test"]\\ -text\aaa_test' should fail and trigger an error because its type \<^typ>\string AAA_test\ +text\\aaa_test'\ should fail and trigger an error because its type \<^typ>\string AAA_test\ is not compatible with its type \<^typ>\'a::one AAA_test\ declared in the \<^theory_text>\declare_reference*\ command:\ text*[aaa_test'::"string AAA_test"]\\