Revert "compiler: inline components that are used only once" (#7697)

This reverts commit bf716ff8c5.
(And also revert the test part of 259756c0fd)

This exposed the bug #7693 and more issues mentined in
https://github.com/slint-ui/slint/issues/7693#issuecomment-2675077008

Fixes #7693
CC #7680
This commit is contained in:
Olivier Goffart 2025-02-21 19:11:11 +01:00 committed by GitHub
parent 34b115bc9f
commit 1a2aff8b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 46 deletions

View file

@ -11,6 +11,7 @@ MyDiag1 := Dialog {
}
MyDiag2 := Dialog {
// ^error{A Dialog must have a single child element that is not StandardButton}
StandardButton { kind: reset; }
StandardButton {
kind: cancel;
@ -54,7 +55,6 @@ MyDialog4 := Dialog {
export Test := Rectangle {
MyDiag1 {}
MyDiag2 {}
// ^error{A Dialog must have a single child element that is not StandardButton}
MyDiag3 {}
MyDialog4 {}
}