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
error when pickling typelines.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 typeIterable[String]^{this, String=>String}
error when pickling tree Iterable[String]^{this, String=>String}
error when pickling tree defindentErrorMessages(messages: IndexedSeq[String]):Iterable[String]^{this, String=>String} =Test.indentLines(1, messages)
...
The text was updated successfully, but these errors were encountered:
The type of this in the capture set of the result type is TermParamRef(lines) (which is the term parameter from the indentLines function). It is invalid and crashes the pickler.
The cause is that when typing the application indentLines(1, messages), the dependency of the result type of the indentLines function is ignored by isResultDependent, which uses the refersToParamOf method to check whether an annotation has possible dependencies on the term parameters. That function, in turn, does not correctly handle the case when it contains a This reference whose type contains references to term parameters.
Compiler version
main
Minimized code
First set the library to the capture checked one and then compile the following snippet:
Output
The text was updated successfully, but these errors were encountered: