mirror of
https://github.com/vlang/v.git
synced 2025-09-19 04:17:46 -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 {
|
} else {
|
||||||
parts.last()
|
parts.last()
|
||||||
}
|
}
|
||||||
c.error('cannot access private field `${field.name}` on `${mod_type}`',
|
if !c.inside_unsafe {
|
||||||
init_field.pos)
|
c.error('cannot access private field `${field.name}` on `${mod_type}`',
|
||||||
break
|
init_field.pos)
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user