Skip to content

Pickler crashes when pickling a program compiled with Scala 2 library CC #19990

Closed
@Linyxus

Description

@Linyxus

Compiler version

main

Minimized code

First set the library to the capture checked one and then compile the following snippet:

object Test {
  def indentLines(level: Int, lines: Iterable[String]) =
    lines.map(line => line.split("\n").map("  " + _).mkString("\n"))

  def indentErrorMessages(messages: IndexedSeq[String]) =
    indentLines(1, messages)
}

Output

error when pickling type lines.type
error when pickling tree this
error when pickling tree [this,f : Any]
error when pickling tree [this,f : Any]*
error when pickling tree new _root_.scala.annotation.retains([this,f : Any]*)
error when pickling type Iterable[String]^{this, String => String}
error when pickling tree Iterable[String]^{this, String => String}
error when pickling tree def indentErrorMessages(messages: IndexedSeq[String]): Iterable[String]^{this, String => String} = Test.indentLines(1, messages)
...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions