mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: forbid function parameter names, shadowing imported module names (#17210)
This commit is contained in:
@ -108,7 +108,7 @@ fn add_item_to_array(obj &C.cJSON, item &C.cJSON) {
|
||||
C.cJSON_AddItemToArray(obj, item)
|
||||
}
|
||||
|
||||
fn json_print(json &C.cJSON) string {
|
||||
s := C.cJSON_Print(json)
|
||||
fn json_print(json_ &C.cJSON) string {
|
||||
s := C.cJSON_Print(json_)
|
||||
return unsafe { tos3(s) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user