1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)

This commit is contained in:
shove
2022-09-15 12:59:31 +08:00
committed by GitHub
parent 5719344653
commit 8b962f8446
111 changed files with 288 additions and 223 deletions

View File

@@ -4,12 +4,12 @@ pub type EventHandlerFn = fn (receiver voidptr, args voidptr, sender voidptr)
pub struct Publisher {
mut:
registry &Registry
registry &Registry = unsafe { nil }
}
pub struct Subscriber {
mut:
registry &Registry
registry &Registry = unsafe { nil }
}
struct Registry {
@@ -26,9 +26,9 @@ struct EventHandler {
pub struct EventBus {
pub mut:
registry &Registry
publisher &Publisher
subscriber &Subscriber
registry &Registry = unsafe { nil }
publisher &Publisher = unsafe { nil }
subscriber &Subscriber = unsafe { nil }
}
pub fn new() &EventBus {