mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: check that functions return in all if/else branches
This commit is contained in:
committed by
Alexander Medvednikov
parent
28147c0930
commit
61983a6799
@@ -739,6 +739,8 @@ fn (t mut Table) fn_gen_types(fn_name string) []string {
|
||||
return f.types
|
||||
}
|
||||
}
|
||||
panic('function $fn_name not found') // TODO panic or return []?
|
||||
return []string // TODO remove return
|
||||
}
|
||||
|
||||
// `foo<Bar>()`
|
||||
|
||||
Reference in New Issue
Block a user