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:
@ -24,7 +24,7 @@ fn (e Employee) to_json() string {
|
||||
$for field in Employee.fields {
|
||||
d := e.$(field.name)
|
||||
|
||||
$if field.Type is JobTitle {
|
||||
$if field.typ is JobTitle {
|
||||
mp[field.name] = json.encode<int>(d)
|
||||
} $else {
|
||||
mp[field.name] = d
|
||||
|
Reference in New Issue
Block a user