mirror of
https://github.com/vlang/v.git
synced 2025-09-17 03:17:25 -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,12 +871,15 @@ fn (mut c Checker) check_uninitialized_struct_fields_and_embeds(node ast.StructI
|
||||
} else {
|
||||
parts.last()
|
||||
}
|
||||
if !c.inside_unsafe {
|
||||
c.error('cannot access private field `${field.name}` on `${mod_type}`',
|
||||
init_field.pos)
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if field.is_deprecated {
|
||||
for init_field in node.init_fields {
|
||||
if field.name == init_field.name {
|
||||
|
Loading…
x
Reference in New Issue
Block a user