diff options
Diffstat (limited to 'tests/patmat/t3111.scala')
-rw-r--r-- | tests/patmat/t3111.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/patmat/t3111.scala b/tests/patmat/t3111.scala new file mode 100644 index 000000000..8f2bc5a27 --- /dev/null +++ b/tests/patmat/t3111.scala @@ -0,0 +1,13 @@ +object Test { + val bool: Boolean = false + + bool match { + case true => "true!" + } + + bool match { + case true => "true!" + case false => "false!" + case _ => "cats and dogs living together... mass hysteria!" + } +}
\ No newline at end of file |