| 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 | |
| 4 | import { A, B } from "../../helper_components/issue_6651_implicit_export.slint" ; |
| 5 | |
| 6 | export component TestCase inherits Window { |
| 7 | in-out property <bool> test: B.ok; |
| 8 | A { } |
| 9 | } |
| 10 | |
| 11 | /* |
| 12 | ```rust |
| 13 | let instance = TestCase::new().unwrap(); |
| 14 | assert!(instance.get_test()); |
| 15 | ``` |
| 16 | |
| 17 | ```cpp |
| 18 | auto handle = TestCase::create(); |
| 19 | const TestCase &instance = *handle; |
| 20 | assert(instance.get_test()); |
| 21 | ``` |
| 22 | |
| 23 | ```js |
| 24 | let instance = new slint.TestCase({}); |
| 25 | assert(instance.test, 1); |
| 26 | ``` |
| 27 | |
| 28 | */ |
| 29 | |