tuned: avoid ambiguity in scala3;
authorwenzelm
Mon, 04 Apr 2022 23:50:40 +0200
changeset 75407 c7051638a38c
parent 75406 85e8b4c2b9a9
child 75408 e859c9f30db2
tuned: avoid ambiguity in scala3;
src/Pure/Thy/thy_header.scala
--- a/src/Pure/Thy/thy_header.scala	Mon Apr 04 23:46:14 2022 +0200
+++ b/src/Pure/Thy/thy_header.scala	Mon Apr 04 23:50:40 2022 +0200
@@ -151,8 +151,8 @@
           { case res => for ((as ~ (_ ~ bs)) <- res; a <- as; b <- bs) yield (a, b) }
 
       val args =
-        position(theory_name) ~
-        (opt($$$(IMPORTS) ~! rep1(position(theory_name))) ^^
+        position(this.theory_name) ~
+        (opt($$$(IMPORTS) ~! rep1(position(this.theory_name))) ^^
           { case None => Nil case Some(_ ~ xs) => xs }) ~
         (opt($$$(KEYWORDS) ~! keyword_decls) ^^
           { case None => Nil case Some(_ ~ xs) => xs }) ~