slint icon indicating copy to clipboard operation
slint copied to clipboard

Compiler lookup some builtin elements by name doesn't play with the import system

Open ogoffart opened this issue 2 years ago • 0 comments

Currently, the compiler recognize some builtin element just by their name, regardless if they are redefined or not or imported or not. It is possible to redefine builtin elements, but the compiler might still consider them as builtin and this can cause bugs.

We do that at least for ListView, ~~PopupWindow~~, TabWidget, ~~Opacity, Clip, *Layout~~, TextInput, maybe more.

So this causes the bug in this comment: https://github.com/sixtyfpsui/sixtyfps/issues/860#issuecomment-1019116038

(Another issue is that we can re-declare Builtin or already defined elements)

ogoffart avatar Jan 22 '22 09:01 ogoffart