diff options
Diffstat (limited to 'tests/patmat/t5440.check')
-rw-r--r-- | tests/patmat/t5440.check | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/patmat/t5440.check b/tests/patmat/t5440.check new file mode 100644 index 000000000..0780d6529 --- /dev/null +++ b/tests/patmat/t5440.check @@ -0,0 +1,5 @@ +./tests/patmat/t5440.scala:2: warning: match may not be exhaustive. +It would fail on the following input: (Nil, List(_)), (List(_), Nil) + def merge(list1: List[Long], list2: List[Long]): Boolean = (list1, list2) match { + ^ +one warning found |