Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Compilation error when using shareNothing import and binary output streams #376

Open
@jportway

Description

@jportway

The following code produces a compiler error

import scala.pickling._, scala.pickling.Defaults._
import scala.pickling.binary._
import scala.pickling.shareNothing._

class Tester {
  val vec = "hello world"
  val output = new ByteArrayOutput(1024)
  vec.pickleTo(output)
}

Here's the error produced :

Error:(14, 15) type mismatch;
 found   : <notype>
 required: Unit
  vec.pickleTo(output)
              ^

When pickling to json output it compiles fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions