Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Created June 11, 2022 20:19
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 kubukoz/5ad2f69c8d9434a1abd6eb6dec784ca8 to your computer and use it in GitHub Desktop.
Save kubukoz/5ad2f69c8d9434a1abd6eb6dec784ca8 to your computer and use it in GitHub Desktop.
//> using scala "3.1.1"
//> using option "-Xfatal-warnings"
enum Foo { case Bar, Baz }
val x: Foo = ???
val y = x match { case Foo.Bar => 42 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment