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

ci: fix import_symbol_private_err.vv and its .out file (time.since is no longer private)

This commit is contained in:
Delyan Angelov 2021-10-24 22:06:32 +03:00
parent 49ebba535e
commit 45c1c1ab41
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 39 additions and 37 deletions

View File

@ -1,25 +1,25 @@
vlib/v/checker/tests/import_symbol_private_err.vv:11:6: notice: interface field `io.ReaderWriterImpl.r` must be initialized
9 | since(now())
10 | _ = {'h': 2}.exists('h')
11 | _ = ReaderWriterImpl{}
vlib/v/checker/tests/import_symbol_private_err.vv:13:6: notice: interface field `io.ReaderWriterImpl.r` must be initialized
11 | 'h': 2
12 | }.exists('h')
13 | _ = ReaderWriterImpl{}
| ~~~~~~~~~~~~~~~~~~
12 | }
vlib/v/checker/tests/import_symbol_private_err.vv:11:6: notice: interface field `io.ReaderWriterImpl.w` must be initialized
9 | since(now())
10 | _ = {'h': 2}.exists('h')
11 | _ = ReaderWriterImpl{}
14 | }
vlib/v/checker/tests/import_symbol_private_err.vv:13:6: notice: interface field `io.ReaderWriterImpl.w` must be initialized
11 | 'h': 2
12 | }.exists('h')
13 | _ = ReaderWriterImpl{}
| ~~~~~~~~~~~~~~~~~~
12 | }
vlib/v/checker/tests/import_symbol_private_err.vv:3:20: error: module `time` function `since()` is private
14 | }
vlib/v/checker/tests/import_symbol_private_err.vv:3:15: error: module `time` function `vpc_now()` is private
1 | import v.scanner
2 | import v.parser
3 | import time { now, since }
| ~~~~~
3 | import time { vpc_now }
| ~~~~~~~
4 | import io { ReaderWriterImpl }
5 |
vlib/v/checker/tests/import_symbol_private_err.vv:4:13: error: module `io` type `ReaderWriterImpl` is private
2 | import v.parser
3 | import time { now, since }
3 | import time { vpc_now }
4 | import io { ReaderWriterImpl }
| ~~~~~~~~~~~~~~~~
5 |
@ -30,31 +30,31 @@ vlib/v/checker/tests/import_symbol_private_err.vv:7:18: error: constant `v.scann
7 | println(scanner.single_quote)
| ~~~~~~~~~~~~
8 | println(parser.State.html)
9 | since(now())
9 | vpc_now()
vlib/v/checker/tests/import_symbol_private_err.vv:8:17: error: enum `v.parser.State` is private
6 | fn main() {
7 | println(scanner.single_quote)
8 | println(parser.State.html)
| ~~~~~~~~~~
9 | since(now())
10 | _ = {'h': 2}.exists('h')
vlib/v/checker/tests/import_symbol_private_err.vv:9:2: error: function `time.since` is private
9 | vpc_now()
10 | _ = {
vlib/v/checker/tests/import_symbol_private_err.vv:9:2: error: function `time.vpc_now` is private
7 | println(scanner.single_quote)
8 | println(parser.State.html)
9 | since(now())
| ~~~~~~~~~~~~
10 | _ = {'h': 2}.exists('h')
11 | _ = ReaderWriterImpl{}
vlib/v/checker/tests/import_symbol_private_err.vv:10:15: error: method `map[string]int.exists` is private
8 | println(parser.State.html)
9 | since(now())
10 | _ = {'h': 2}.exists('h')
| ~~~~~~~~~~~
11 | _ = ReaderWriterImpl{}
12 | }
vlib/v/checker/tests/import_symbol_private_err.vv:11:6: error: type `io.ReaderWriterImpl` is private
9 | since(now())
10 | _ = {'h': 2}.exists('h')
11 | _ = ReaderWriterImpl{}
9 | vpc_now()
| ~~~~~~~~~
10 | _ = {
11 | 'h': 2
vlib/v/checker/tests/import_symbol_private_err.vv:12:4: error: method `map[string]int.exists` is private
10 | _ = {
11 | 'h': 2
12 | }.exists('h')
| ~~~~~~~~~~~
13 | _ = ReaderWriterImpl{}
14 | }
vlib/v/checker/tests/import_symbol_private_err.vv:13:6: error: type `io.ReaderWriterImpl` is private
11 | 'h': 2
12 | }.exists('h')
13 | _ = ReaderWriterImpl{}
| ~~~~~~~~~~~~~~~~~~
12 | }
14 | }

View File

@ -1,12 +1,14 @@
import v.scanner
import v.parser
import time { now, since }
import time { vpc_now }
import io { ReaderWriterImpl }
fn main() {
println(scanner.single_quote)
println(parser.State.html)
since(now())
_ = {'h': 2}.exists('h')
vpc_now()
_ = {
'h': 2
}.exists('h')
_ = ReaderWriterImpl{}
}