| 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 | component Foo { |
| 5 | |
| 6 | property <int> abc: 45 %; |
| 7 | // ^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} |
| 8 | |
| 9 | property <int> def: abc % 8; |
| 10 | // ^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} |
| 11 | // ^^error{Parse error} |
| 12 | } |
| 13 | |