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:
parent
69b498d85d
commit
422ba3a3ce
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user