From a1677384b36f0d5524f72c3e4c293cff44d8cf09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9ric?= Date: Mon, 11 Mar 2024 15:51:34 +0100 Subject: [PATCH] Update bug declare_reference* bug example --- Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy index 412ee88..3526185 100644 --- a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy +++ b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy @@ -704,12 +704,15 @@ bbb::"'a list" declare_reference*[aaa_test::"'a::one AAA_test"] text\@{AAA_test (unchecked) \aaa_test\}\ -text\bbb_test should fails and trigger an error \ -text*[bbb_test::"'a::one BBB_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\bbb_test should fails and trigger an error \ +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"]\\