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

ci: fix vlib/v/checker/tests/nil.vv and its .out file

This commit is contained in:
Delyan Angelov 2022-07-21 23:05:02 +03:00
parent 474033c055
commit 5340f8afea
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 7 additions and 10 deletions

View File

@ -1,7 +1,6 @@
vlib/v/checker/tests/nil.vv:3:18: error: use of untyped nil in assignment (use `unsafe`) vlib/v/checker/tests/nil.vv:2:11: error: `nil` is only allowed in `unsafe` code
1 | fn main() { 1 | fn main() {
2 | unsafe { 2 | value := nil
3 | value := nil | ~~~
| ~~~ 3 | println(value)
4 | println(value) 4 | }
5 | }

View File

@ -1,6 +1,4 @@
fn main() { fn main() {
unsafe { value := nil
value := nil println(value)
println(value)
}
} }