1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4import { StandardButton } from "std-widgets.slint";
5
6export Test := Dialog {
7// ^error{A Dialog must have a single child element that is not StandardButton}
8 StandardButton { kind: ok; }
9 StandardButton { }
10// ^error{The `kind` property of the StandardButton in a Dialog must be set}
11 StandardButton { kind: true ? ok : cancel; }
12// ^error{The `kind` property of the StandardButton in a Dialog must be known at compile-time}
13
14}
15