Skip to content

Commit bc73d3e

Browse files
committed
remove wasm related code in vlib/v/parser/parse_type.v
1 parent b1dbaf0 commit bc73d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/v/parser/parse_type.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ fn (mut p Parser) parse_type() ast.Type {
620620
typ = typ.set_flag(.atomic_f)
621621
}
622622
if typ.idx() == ast.array_type && !p.builtin_mod && p.mod !in ['os', 'strconv', 'sync']
623-
&& !p.inside_unsafe && p.pref.backend != .wasm {
623+
&& !p.inside_unsafe {
624624
p.error_with_pos('`array` is an internal type, it cannot be used directly. Use `[]int`, `[]Foo` etc',
625625
pos)
626626
}

0 commit comments

Comments
 (0)