mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: check that fns with return values, and matches, do return
This commit is contained in:
@ -407,6 +407,8 @@ fn (mut m map) get_and_set(key string, zero voidptr) voidptr {
|
||||
// Key not found, insert key with zero-value
|
||||
m.set(key, zero)
|
||||
}
|
||||
assert false
|
||||
return voidptr(0)
|
||||
}
|
||||
|
||||
// If `key` matches the key of an element in the container,
|
||||
|
Reference in New Issue
Block a user