Last active
August 29, 2015 14:14
-
-
Save SeanTAllen/21748bafece40847765e to your computer and use it in GitHub Desktop.
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
case class Foo(a: Option[String]) | |
Foo(Some("string")) match { | |
case Foo(None) => "compiles w/o warning" | |
} | |
val z: Option[String] = None | |
z match { | |
case None => "doesn't compile w/o warning" | |
} | |
// Why does the first not fail exhaustive-ness check like the second? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment