mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Change the syntax of structures to require the struct keyword
This commit is contained in:
parent
333c96fd79
commit
d3801e26d3
12 changed files with 96 additions and 80 deletions
|
@ -128,9 +128,9 @@ The follow table summarizes the entire mapping:
|
|||
For user defined structures in the .60, an extra struct is generated.
|
||||
For example, if the `.60` contains
|
||||
```60
|
||||
export MyStruct := {
|
||||
property <int> foo;
|
||||
property <string> bar;
|
||||
export struct MyStruct := {
|
||||
foo: int,
|
||||
bar: string,
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue