mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: allow functions return without main function
This commit is contained in:
parent
cd625b04eb
commit
4b9cc1246e
@ -494,6 +494,7 @@ _thread_so = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&reload_so, 0, 0, 0);
|
|||||||
}
|
}
|
||||||
p.check_unused_variables()
|
p.check_unused_variables()
|
||||||
p.cur_fn = EmptyFn
|
p.cur_fn = EmptyFn
|
||||||
|
p.returns = false
|
||||||
if !is_generic {
|
if !is_generic {
|
||||||
p.genln('}')
|
p.genln('}')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user