1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
4// Right now, this test is only testing rust keyword, but it should be expanded to JS and C++ keywords
5
6export struct mod := {
7 loop: string,
8}
9
10match := Rectangle {
11 property<mod> move: {loop : "mod" };
12 property<bool> test: move.loop == "mod";
13}
14
15/*
16```rust
17let instance = r#match::new().unwrap();
18assert_eq!(instance.get_move(), r#mod{ r#loop: "mod".into() });
19```
20*/
21