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

operator | not defined on bool

This commit is contained in:
Alexander Medvednikov
2019-09-15 19:07:40 +03:00
parent 48c05b5a45
commit 3db4d66824
6 changed files with 27 additions and 18 deletions

View File

@@ -38,6 +38,8 @@ struct C.tm {
tm_sec int
}
fn C.time(int) i64
pub fn now() Time {
t := C.time(0)
mut now := &C.tm{!}