compiler: unused module check always

pull/2086/head
joe-conigliaro 2019-09-23 22:11:05 +10:00 committed by Alexander Medvednikov
parent 69b498d85d
commit 422ba3a3ce
1 changed files with 3 additions and 3 deletions

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')