mirror of
https://github.com/vlang/v.git
synced 2025-09-16 19:06:24 -04:00
checker: fix compilation of vlib/v/slow_tests/assembly/asm_test.amd64.v (regression after dfc0c91)
This commit is contained in:
parent
4572c64759
commit
73bdcd378c
@ -871,9 +871,12 @@ fn (mut c Checker) check_uninitialized_struct_fields_and_embeds(node ast.StructI
|
||||
} else {
|
||||
parts.last()
|
||||
}
|
||||
c.error('cannot access private field `${field.name}` on `${mod_type}`',
|
||||
init_field.pos)
|
||||
break
|
||||
if !c.inside_unsafe {
|
||||
c.error('cannot access private field `${field.name}` on `${mod_type}`',
|
||||
init_field.pos)
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user