olabusayoT commented on code in PR #1433:
URL: https://github.com/apache/daffodil/pull/1433#discussion_r1956610636


##########
daffodil-core/src/main/scala/org/apache/daffodil/core/dsom/SimpleTypes.scala:
##########
@@ -276,17 +276,17 @@ final class EnumerationDef(xml: Node, parentType: 
SimpleTypeDefBase)
         SDE("Invalid data for enumeration: %s", e.getMessage)
     }
 
-  lazy val repValuesRaw: Seq[String] = {
+  lazy val repValuesRaw: collection.Seq[String] = {

Review Comment:
   That's because in 2.12, Seq is an alias for collection.Seq but in 2.13, it's 
an alias for immutable.Seq, but map/flatMap etc return collection.Seq resulting 
in the type mismatch error below. Hence we have to explicitly set it to 
collection.Seq so 2.13 doesn't error out. 
(https://docs.scala-lang.org/overviews/core/collections-migration-213.html#option-1-migrate-back-to-scalacollectionseq)
 
   
   SimpleTypes.scala:284:5: type mismatch;
   [error]  found   : Seq[String] (in scala.collection) 
   [error]  required: Seq[String] (in scala.collection.immutable) 
   [error]     res
   [error]     ^
   [error] one error found



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to