Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running editor gets warning that will become error #10

Open
torial opened this issue May 12, 2024 · 1 comment
Open

Running editor gets warning that will become error #10

torial opened this issue May 12, 2024 · 1 comment

Comments

@torial
Copy link

torial commented May 12, 2024

C:/fresh/v/editor/text_editor_app.v:24:4: warning: initalizing private field click_event_fn of iui.MenuItemConfig
22 | item := ui.MenuItem.new(
23 | text: theme.name
24 | click_event_fn: theme_click
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
25 | )
26 | theme_menu.add_child(item)
Details: this will become an error after 2024-05-31

@torial
Copy link
Author

torial commented May 12, 2024

for these config structs, I just had to add:
pub: before all the struct fields to get past this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant