mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
newlines
This commit is contained in:
parent
6e6e1ce833
commit
d988ab5378
1 changed files with 4 additions and 0 deletions
|
@ -3019,14 +3019,18 @@ fn specialize_after_match() {
|
|||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
listA : LinkedList Str
|
||||
listA = Nil
|
||||
|
||||
listB : LinkedList Str
|
||||
listB = Nil
|
||||
|
||||
longestLinkedList listA listB
|
||||
|
||||
LinkedList a : [Cons a (LinkedList a), Nil]
|
||||
|
||||
longestLinkedList : LinkedList a, LinkedList a -> Nat
|
||||
longestLinkedList = \listA, listB -> when listA is
|
||||
Nil -> linkedListLength listB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue