mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: require assign on type alias (#6477)
This commit is contained in:
@@ -360,7 +360,7 @@ fn convert_ctime(t C.tm, microsecond int) Time {
|
||||
}
|
||||
|
||||
// A lot of these are taken from the Go library
|
||||
pub type Duration i64
|
||||
pub type Duration = i64
|
||||
|
||||
pub const(
|
||||
nanosecond = Duration(1)
|
||||
|
||||
@@ -31,7 +31,7 @@ fn to_local_time(t Time) Time {
|
||||
return convert_ctime(loc_tm, t.microsecond)
|
||||
}
|
||||
|
||||
type time_t voidptr
|
||||
type time_t = voidptr
|
||||
|
||||
// in most systems, these are __quad_t, which is an i64
|
||||
struct C.timespec {
|
||||
|
||||
Reference in New Issue
Block a user