mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-02 18:03:07 +00:00

Was reported several times: - https://github.com/slint-ui/slint/discussions/4190 - https://github.com/slint-ui/slint/issues/3980
12 lines
654 B
Text
12 lines
654 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
component Foo {
|
|
|
|
property <int> abc: 45 %;
|
|
// ^error{Unexpected '%'. For the unit, it should be attached to the number. If you're looking for the modulo operator, use the 'Math.mod\(x, y\)' function}
|
|
|
|
property <int> def: abc % 8;
|
|
// ^error{Unexpected '%'. For the unit, it should be attached to the number. If you're looking for the modulo operator, use the 'Math.mod\(x, y\)' function}
|
|
// ^^error{Parse error}
|
|
}
|