mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Revert "compiler: inline components that are used only once" (#7697)
This reverts commitbf716ff8c5
. (And also revert the test part of259756c0fd
) 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:
parent
34b115bc9f
commit
1a2aff8b57
6 changed files with 9 additions and 46 deletions
|
@ -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 {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue