mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-06 10:30:37 +00:00

We implicitly export the last component of a .slint file to the generator. Issue a warning when that happens and suggest to export it explicitly.
23 lines
407 B
Text
23 lines
407 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
|
|
export SuperSimple := Rectangle {
|
|
background: green;
|
|
|
|
for xx Text {}
|
|
// ^error{Invalid 'for' syntax: there should be a 'in' token}
|
|
|
|
|
|
for xx in zz: Hello {
|
|
Rectangle {}
|
|
}
|
|
|
|
Image {
|
|
}
|
|
|
|
for xx[idx] in zz: Hello {
|
|
Rectangle {}
|
|
}
|
|
|
|
}
|