You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lib/gtk4/lib/gtk4/src/bindings/gtk/widget_template.cr:45:58
45 | {% for child in @type.annotation(Gtk::UiTemplate)[:children] %}
^
Error: `for` expression must be an array, hash, tuple, named tuple or a range literal, not NilLiteral:
nil
The text was updated successfully, but these errors were encountered:
When trying to assign a ui template to a class without any children, you can't just leave out the children field in the annotation.
This works.
This raises the following exception:
The text was updated successfully, but these errors were encountered: