Last active
January 31, 2017 22:15
-
-
Save sohnryang/a2513e2256f8f41d5c3a7aa2d0658d30 to your computer and use it in GitHub Desktop.
scala for the impatient - Come up with one situation where the assignment x = y = 1 is valid in Scala
This file contains hidden or 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
var x: Unit = () | |
var y: Int = 0 | |
x = y = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment