snapshots_test__diagnostics_dynamic_misuse.snap raw

---
source: crates/guiduck-component-core/tests/snapshots_test.rs
expression: "compile_or_render_errors(source, \"broken.gdc\")"
---
error: `if` takes a boolean condition, e.g. `(> count 0)`
  --> broken.gdc:7:9
  |
7 |     (if "nope" (text :text "a"))
  |         ^^^^^^

error: `title` shadows a declared name; pick another loop variable
  --> broken.gdc:8:10
  |
8 |     (for title todos (text :text "shadowed"))
  |          ^^^^^

error: `count` is a `i32`, not a list; `for` iterates a `(List T)` prop or state
  --> broken.gdc:9:12
  |
9 |     (for x count (text :text "not a list"))
  |            ^^^^^

error: `missing` is not a declared prop or state
  --> broken.gdc:10:12
   |
10 |     (for y missing (text :text "unknown"))
   |            ^^^^^^^

error: `:autofocus` cannot live inside `if` or `for`; initial focus must be unconditional
  --> broken.gdc:12:30
   |
12 |       (text-input :autofocus true))))
   |                              ^^^^