Created
November 22, 2019 13:06
-
-
Save josep2/a700aa6e10862a250db3530f543d8ccb 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
case class Player(name: String) | |
val biggie = Player("Biggie") | |
biggie.name = "2pac" | |
// error: reassignment to val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment