mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00

Updated the version from 1.1 to 1.2 Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License" Added definition of "Mobile Application" and grant of right Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage Moved the para on copyright notices to section under "Limitations"
32 lines
924 B
Text
32 lines
924 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
Compo1 := Rectangle {
|
|
|
|
property <int> a : aa();
|
|
// ^error{The binding for the property 'a' is part of a binding loop}
|
|
pure callback aa() -> int;
|
|
|
|
function factorial(n: int) -> int {
|
|
// ^error{The binding for the property 'factorial' is part of a binding loop}
|
|
return n == 0 ? 1 : factorial(n - 1) * n;
|
|
}
|
|
|
|
|
|
property <int> b;
|
|
public pure function bb() -> int { return b; }
|
|
// ^error{The binding for the property 'bb' is part of a binding loop}
|
|
}
|
|
|
|
export App := Rectangle {
|
|
cc := Compo1 {
|
|
aa() => { return self.a; }
|
|
// ^error{The binding for the property 'aa' is part of a binding loop}
|
|
|
|
b: self.bb();
|
|
// ^error{The binding for the property 'b' is part of a binding loop}
|
|
}
|
|
|
|
|
|
|
|
}
|