mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Don't use Str.concat in an example
This commit is contained in:
parent
b291ef3bce
commit
bc8394f2b6
1 changed files with 2 additions and 2 deletions
|
|
@ -1825,9 +1825,9 @@ test "List.fold works as builtin associated item" {
|
|||
const source =
|
||||
\\Test := [].{}
|
||||
\\
|
||||
\\x = List.fold(["a", "b", "c"], "", |acc, item| Str.concat(acc, item))
|
||||
\\x = List.fold([1, 2, 3], 0, |acc, item| acc + item)
|
||||
;
|
||||
try checkTypesModule(source, .{ .pass = .{ .def = "x" } }, "Str");
|
||||
try checkTypesModule(source, .{ .pass = .{ .def = "x" } }, "Num(_size)");
|
||||
}
|
||||
|
||||
test "associated item: type annotation followed by body should not create duplicate definition" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue