slint/internal/compiler/tests/syntax/elements/timer2.slint
Olivier Goffart a9f526491a Timer Element
Closes #5724
2024-08-16 16:36:38 +02:00

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 {}
}