Type-based lookup in sub-expressions (Was: Can't use color name literals in struct property definitions) #897
Labels
a:compiler
Slint compiler internal (not the codegen, not the parser)
enhancement
New feature or request
https://sixtyfps.io/releases/0.1.6/editor/?snippet=struct+S+%3A%3D+%7B%0A++++c%3A+color%2C%0A%7D%0ADemo+%3A%3D+Window+%7B%0A++++%2F%2F+OK%0A++++property%3Ccolor%3E+c%3A+red%3B%0A++++%2F%2F+OK%0A++++property%3CS%3E+s1%3A+%7Bc%3A+Colors.rgb%28255%2C0%2C0%29%7D%3B%0A++++%2F%2F+error%3A+Unknown+unqualified+identifier+%27red%27%0A++++property%3CS%3E+s2%3A+%7Bc%3A+red%7D%3B%0A%7D%0A
The text was updated successfully, but these errors were encountered: