1
0
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:
Henrixounez 2019-08-29 19:43:23 +02:00 committed by Alexander Medvednikov
parent cd625b04eb
commit 4b9cc1246e

View File

@ -494,6 +494,7 @@ _thread_so = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)&reload_so, 0, 0, 0);
}
p.check_unused_variables()
p.cur_fn = EmptyFn
p.returns = false
if !is_generic {
p.genln('}')
}