Skip to content

Instantly share code, notes, and snippets.

@ieure
Created July 23, 2013 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ieure/6066895 to your computer and use it in GitHub Desktop.
Save ieure/6066895 to your computer and use it in GitHub Desktop.
scala> case class X(a: Int, b: Int)
defined class X
scala> X(1, 2).copy(a=1,b=-1)
<console>:10: error: not found: value b
X(1, 2).copy(a=1,b=-1)
^
scala> X(1, 2).copy(a=1,b = -1)
res1: X = X(1,-1)
scala>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment