Created
February 12, 2016 15:51
-
-
Save dabd/307cb09dcaa33737b684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bar(i: Int) { | |
val lst = List.empty[Int] | |
def copy(i: Int = i, lst: List[Int] = lst) = { | |
val b = new Bar(i = i) | |
b.lst = lst | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment