1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: remove any type future implementation reference (#18822)

This commit is contained in:
Felipe Pena 2023-07-10 04:41:06 -03:00 committed by GitHub
parent c9e8dd56c2
commit f8e89ae91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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
| ~~~

View File

@ -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
}

View File

@ -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)
| ~~~