Skip to content

Instantly share code, notes, and snippets.

@darkfrog26
Created October 23, 2012 16:19
Show Gist options
  • Save darkfrog26/3939823 to your computer and use it in GitHub Desktop.
Save darkfrog26/3939823 to your computer and use it in GitHub Desktop.
trait Test[T] {
def test[S <: T](value: S): Unit
}
object TestObject extends Test[String] {
private var s: String = _
def test[String](value: String) = {
s = value
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment