Closed
Description
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)
...