slint/internal/compiler/tests/syntax/basic/children_placeholder.slint
Tobias Hunger 4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00

23 lines
547 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
TestBox := Rectangle {
@children
@children
// ^error{The @children placeholder can only appear once in an element}
}
TestBox2 := Rectangle {
Rectangle {
@children
}
@children
// ^error{The @children placeholder can only appear once in an element hierarchy}
}
Final := TestBox {
Rectangle {
@children
// ^error{children placeholder not allowed in the final component}
}
}