1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: unused module check always

This commit is contained in:
joe-conigliaro 2019-09-23 22:11:05 +10:00 committed by Alexander Medvednikov
parent 69b498d85d
commit 422ba3a3ce

View File

@ -276,10 +276,10 @@ fn (p mut Parser) parse(pass Pass) {
if p.is_script && !p.pref.is_test {
p.set_current_fn( MainFn )
p.check_unused_variables()
}
if !p.first_pass() && !p.pref.is_repl {
p.check_unused_imports()
}
}
if false && !p.first_pass() && p.fileis('main.v') {
out := os.create('/var/tmp/fmt.v') or {
cerror('failed to create fmt.v')