You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably only became an issue with Scala updates. It's an issue in Scala 2.13.1.
In CodeListing.scala,we should change class CodeListing(val fileName:String) extends collection.IndexedSeq[String] to class CodeListing(val fileName:String) extends collection.immutable.IndexedSeq[String]. If not, when we run scala CodeListingTest.scala, we get the following error
error: type mismatch;
found : IndexedSeq[String] (in scala.collection)
required: IndexedSeq[String] (in scala.collection.immutable)
new CodeListingTester(CodeListing.apply)
The text was updated successfully, but these errors were encountered:
Probably only became an issue with Scala updates. It's an issue in Scala 2.13.1.
In
CodeListing.scala
,we should changeclass CodeListing(val fileName:String) extends collection.IndexedSeq[String]
toclass CodeListing(val fileName:String) extends collection.immutable.IndexedSeq[String]
. If not, when we runscala CodeListingTest.scala
, we get the following errorThe text was updated successfully, but these errors were encountered: