Skip to content

Commit

Permalink
all: remove any type future implementation reference (#18822)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 10, 2023
1 parent c9e8dd5 commit f8e89ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vlib/v/checker/tests/struct_field_with_any_type_err.out
@@ -1,4 +1,4 @@
vlib/v/checker/tests/struct_field_with_any_type_err.vv:2:6: error: cannot use `any` type here, `any` will be implemented in V 0.4
vlib/v/checker/tests/struct_field_with_any_type_err.vv:2:6: error: cannot use `any` type here
1 | struct My_type {
2 | fld any
| ~~~
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/parser/parse_type.v
Expand Up @@ -649,7 +649,7 @@ fn (mut p Parser) parse_any_type(language ast.Language, is_ptr bool, check_dot b
}
'any' {
if p.file_backend_mode != .js && p.mod != 'builtin' {
p.error('cannot use `any` type here, `any` will be implemented in V 0.4')
p.error('cannot use `any` type here')
}
ret = ast.any_type
}
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/parser/tests/cast_to_any_type_err.out
@@ -1,4 +1,4 @@
vlib/v/parser/tests/cast_to_any_type_err.vv:2:7: error: cannot use `any` type here, `any` will be implemented in V 0.4
vlib/v/parser/tests/cast_to_any_type_err.vv:2:7: error: cannot use `any` type here
1 | fn main() {
2 | a := any(22)
| ~~~
Expand Down

0 comments on commit f8e89ae

Please sign in to comment.