mirror of
https://github.com/vlang/v.git
synced 2025-09-09 15:27:05 -04:00
This commit is contained in:
parent
62de56ff99
commit
81b421bb5b
@ -166,6 +166,9 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
|
|||||||
builderptr_idx + '.write_rune',
|
builderptr_idx + '.write_rune',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
if !table.used_features.arr_init {
|
||||||
|
table.used_features.arr_init = table.used_features.print_types.keys().any(table.type_to_str(it).contains('[]'))
|
||||||
|
}
|
||||||
if table.used_features.arr_init || table.used_features.comptime_for {
|
if table.used_features.arr_init || table.used_features.comptime_for {
|
||||||
include_panic_deps = true
|
include_panic_deps = true
|
||||||
core_fns << '__new_array'
|
core_fns << '__new_array'
|
||||||
|
0
vlib/v/tests/skip_unused/call_arguments.run.out
Normal file
0
vlib/v/tests/skip_unused/call_arguments.run.out
Normal file
4
vlib/v/tests/skip_unused/call_arguments.vv
Normal file
4
vlib/v/tests/skip_unused/call_arguments.vv
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
fn main() {
|
||||||
|
args := arguments()
|
||||||
|
assert args.len > 0
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user