mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
fmt: fix eating the attribute from @[deprecated] pub type Alias = int
(fix #24968), workaround -usecache bug (#24969)
This commit is contained in:
parent
73db18bc0d
commit
6fb46cc30f
6 changed files with 27 additions and 0 deletions
|
@ -3,6 +3,7 @@ module time
|
|||
// A lot of these are taken from the Go library.
|
||||
pub type Duration = i64
|
||||
|
||||
@[markused]
|
||||
pub const nanosecond = Duration(1)
|
||||
pub const microsecond = Duration(1000 * nanosecond)
|
||||
pub const millisecond = Duration(1000 * microsecond)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue