Skip to content

Commit

Permalink
tested return statements in function in nested ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerbruggen committed Dec 17, 2021
1 parent ffe662b commit 700c918
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file modified src/__pycache__/JurjenLangCustomVisitor.cpython-39.pyc
Binary file not shown.
19 changes: 19 additions & 0 deletions test.jur
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,23 @@ if true{
}
assert changed == 1

func rettester{
if true{
if true{
if false{
return false
}else{
return true
}
}else{
return false
}
}else{
return false
}
}

val = rettester()
assert val

print "success"

0 comments on commit 700c918

Please sign in to comment.