slint/internal/compiler/tests/syntax/layout/if_in_grid_row.slint
2023-10-23 19:43:46 +02:00

14 lines
441 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
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 {}
}
}
}