From 45c1c1ab41f1aba5f84f8ddbbf5287f1272fc81b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 24 Oct 2021 22:06:32 +0300 Subject: [PATCH] ci: fix import_symbol_private_err.vv and its .out file (time.since is no longer private) --- .../tests/import_symbol_private_err.out | 68 +++++++++---------- .../tests/import_symbol_private_err.vv | 8 ++- 2 files changed, 39 insertions(+), 37 deletions(-) diff --git a/vlib/v/checker/tests/import_symbol_private_err.out b/vlib/v/checker/tests/import_symbol_private_err.out index e5685a4147..e9ba70da09 100644 --- a/vlib/v/checker/tests/import_symbol_private_err.out +++ b/vlib/v/checker/tests/import_symbol_private_err.out @@ -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 | } diff --git a/vlib/v/checker/tests/import_symbol_private_err.vv b/vlib/v/checker/tests/import_symbol_private_err.vv index fd4411b0e7..8c7399a72e 100644 --- a/vlib/v/checker/tests/import_symbol_private_err.vv +++ b/vlib/v/checker/tests/import_symbol_private_err.vv @@ -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{} }