mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Compiler: Don't panic when a Row is repeated in a GridLayout
Fixes #3729
This commit is contained in:
parent
49571c8bf2
commit
ae4debafe2
2 changed files with 28 additions and 1 deletions
14
internal/compiler/tests/syntax/layout/if_in_grid_row.slint
Normal file
14
internal/compiler/tests/syntax/layout/if_in_grid_row.slint
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
||||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
||||
|
||||
export component Test {
|
||||
property <bool> condition;
|
||||
|
||||
GridLayout {
|
||||
// Issue #3729
|
||||
if (condition) : r := Row {
|
||||
// ^error{'if' or 'for' expressions are not currently supported in grid layouts}
|
||||
Rectangle {}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue