diff --git a/compiler/cgen.nim b/compiler/cgen.nim index a456b7d51..3982f60cc 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -945,11 +945,12 @@ proc allPathsAsgnResult(n: PNode): InitResultEnum = # assignment this is not good enough! The only pattern we allow for # is 'finally: result = x' result = InitSkippable - for it in n: - if it.kind == nkFinally: - result = allPathsAsgnResult(it.lastSon) + allPathsInBranch(n[0]) + for i in 1..