mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 13:35:00 +00:00
14 lines
452 B
Text
14 lines
452 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
export component Abc inherits Timer {
|
|
// ^error{A component cannot inherit from Timer}
|
|
interval: 50ms;
|
|
}
|
|
|
|
export component Def {
|
|
if true: Timer { interval: 32ms; }
|
|
// ^error{Timer cannot be directly repeated or conditional}
|
|
|
|
if false: Abc {}
|
|
}
|