mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix v -o foo.c build module foo
This commit is contained in:
@ -1501,7 +1501,7 @@ fn (p mut Parser) get_var_type(name string, is_ptr bool, deref_nr int) string {
|
||||
// *var
|
||||
if deref_nr > 0 {
|
||||
/*
|
||||
if !p.inside_unsafe {
|
||||
if !p.inside_unsafe && !p.pref.building_v && p.mod != 'os' {
|
||||
p.error('dereferencing can only be done inside an `unsafe` block')
|
||||
}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user