Open tsepton opened 2 years ago
[on branch cleansing] When removing the .asInstanceOf[Report]` line inside Standardiser.scala:45, the following compilation error appears
[error] -- [E007] Type Mismatch Error: C:\Users\tsept\Documents\Dev\ufoscrapper\src\main\scala\Standardiser.scala:38:6 [error] 38 | reports.map(report => report) [error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [error] |Found: ReportRepresentation.Table[?1.CAP] [error] |Required: ReportRepresentation.Table[ReportRepresentation.Report] [error] | [error] |where: ?1 is an unknown value of type scala.runtime.TypeBox[Nothing, ReportRepresentation.Data] [error] | [error] | [error] |The following import might make progress towards fixing the problem: [error] | [error] | import scalaz.Leibniz.subst [error] | [error] | [error] | longer explanation available when compiling with `-explain` [error] one error found [error] (Compile / compileIncremental) Compilation failed [error] Total time: 1 s, completed 26 Aug 2022, 16:42:38
This has a link with the map definition of the Table case class
def map(f: A => _ <: Data): Table[_ <: Data] = this.copy(fields = fields.map(f))
[on branch cleansing] When removing the .asInstanceOf[Report]` line inside Standardiser.scala:45, the following compilation error appears