Skip to content

Instantly share code, notes, and snippets.

@tpolecat
Last active December 16, 2015 12:38
Show Gist options
  • Save tpolecat/5435708 to your computer and use it in GitHub Desktop.
Save tpolecat/5435708 to your computer and use it in GitHub Desktop.
trait Ref[A] extends java.io.Externalizable
trait Binary[A]
def serializable[A <: java.io.Serializable]:Binary[A] = null
implicit def ref[A]: Binary[Ref[A]] = serializable[Ref[A]]
implicitly[Binary[Ref[Int]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment