mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Fix imports
This commit is contained in:
parent
414a320358
commit
91ceebc065
6 changed files with 49 additions and 13 deletions
|
@ -2003,3 +2003,29 @@ fn match_list() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn foo1() {
|
||||
let _tracing_guards = roc_tracing::setup_tracing!();
|
||||
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
Html state : [
|
||||
Element (List (Html state)),
|
||||
]
|
||||
|
||||
translateStatic : Html _ -> Html _
|
||||
translateStatic = \node ->
|
||||
when node is
|
||||
Element children ->
|
||||
newChildren = List.map children translateStatic
|
||||
|
||||
Element newChildren
|
||||
|
||||
main = when translateStatic (Element []) is
|
||||
_ -> ""
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue