mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
parser: check that functions return in all if/else branches
This commit is contained in:
parent
28147c0930
commit
61983a6799
9 changed files with 14 additions and 2 deletions
|
@ -489,8 +489,7 @@ pub fn (c Complex) acsch() Complex {
|
|||
)
|
||||
.divide(c)
|
||||
.ln()
|
||||
}
|
||||
if(c.re > 0) {
|
||||
} else {
|
||||
return one.add(
|
||||
one.add(
|
||||
c.pow(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue