snapshots_test__diagnostics_invocation_misuse.snap
raw
---
source: crates/guiduck-component-core/tests/snapshots_test.rs
expression: "compile_or_render_errors(source, \"broken.gdc\")"
---
error: `two` is declared with 2 payload(s) but is invoked with 1 argument(s)
--> broken.gdc:8:26
|
8 | (container :on-click (two count))
| ^^^^^^^^^^^
error: `missing` is not a declared handler
--> broken.gdc:9:26
|
9 | (container :on-click (missing count))
| ^^^^^^^^^^^^^^^
error: `count` is not a handler; `:on-…` events take a declared `(handler …)` name
--> broken.gdc:10:26
|
10 | (container :on-click (count count))
| ^^^^^^^^^^^^^
error: `two` takes 2 payloads; wire it with an invocation form supplying its arguments
--> broken.gdc:11:26
|
11 | (container :on-click two)
| ^^^
error: this argument does not fit the declared String payload
--> broken.gdc:12:36
|
12 | (text-input :on-change (edited count))
| ^^^^^
error: handler invocations like `(name …)` only wire events (`:on-click (remove todo.id)`); expressions have no calls
--> broken.gdc:13:17
|
13 | (text :text (plain))))
| ^^^^^^^