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

checker: disallow enum initalization (#17361)

This commit is contained in:
Swastik Baranwal
2023-02-20 02:52:07 +05:30
committed by GitHub
parent 79b2c34f97
commit e9a3817aed
8 changed files with 27 additions and 7 deletions

View File

@ -142,7 +142,7 @@ fn (mut en EpollNotifier) close() ! {
// event_mask_to_flag is a helper function that converts a bitmask
// returned by epoll_wait to FdEventType
fn event_mask_to_flag(mask u32) FdEventType {
mut flags := FdEventType{}
mut flags := FdEventType.read
if mask & notify.epoll_read != 0 {
flags.set(.read)