Skip to content

Instantly share code, notes, and snippets.

@soc
Created July 31, 2012 22:13
Show Gist options
  • Select an option

  • Save soc/3221129 to your computer and use it in GitHub Desktop.

Select an option

Save soc/3221129 to your computer and use it in GitHub Desktop.
object Test {
def apply[T] {
println("app")
}
def update[T](t: T) {
println(t)
}
}
scala> Test[Int]
app
scala> Test[Int] = 1
<console>:1: error: ';' expected but '=' found.
Test[Int] = 1
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment