mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: change .ReturnType and .Type to .return_type and .typ (#6494)
This commit is contained in:
@ -2520,10 +2520,10 @@ fn decode<T>(data string) T {
|
||||
// compile-time `for` loop
|
||||
// T.fields gives an array of a field metadata type
|
||||
$for field in T.fields {
|
||||
$if field.Type is string {
|
||||
$if field.typ is string {
|
||||
// $(string_expr) produces an identifier
|
||||
result.$(field.name) = get_string(data, field.name)
|
||||
} $else $if field.Type is int {
|
||||
} $else $if field.typ is int {
|
||||
result.$(field.name) = get_int(data, field.name)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user