Fix imports

This commit is contained in:
Ayaz Hafiz 2022-11-22 11:00:14 -06:00
parent 414a320358
commit 91ceebc065
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 49 additions and 13 deletions

View file

@ -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
_ -> ""
"#
)
}