Skip to content

Commit

Permalink
parser: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Oates committed Jan 4, 2025
1 parent a4950f4 commit 1d24aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/parser/containers.v
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ fn (mut p Parser) array_init(is_option bool, alias_array_type ast.Type) ast.Arra
// result of expr so we do those in checker
if elem_type != 0 {
if elem_type.has_flag(.result) {
p.error_with_pos('array does not support storing storing Result', elem_type_pos)
p.error_with_pos('array does not support storing storing Result',
elem_type_pos)
}
idx := p.table.find_or_register_array(elem_type)
if elem_type.has_flag(.generic) {
Expand Down

0 comments on commit 1d24aac

Please sign in to comment.