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:
parent
c9e8dd56c2
commit
f8e89ae91c
@ -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
|
||||
| ~~~
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
| ~~~
|
||||
|
Loading…
Reference in New Issue
Block a user