| ... | ... | @@ -478,11 +478,13 @@ var zigAnalysis; |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | if (lastIsDecl && last.kind === "const") { |
| 481 | | let typeObj = getType(resolveValue(last.value).expr.type); |
| 482 | | if (typeObj && typeObj.kind === typeKinds.Fn) { |
| 483 | | return renderFn(last); |
| 481 | const value = resolveValue(last.value); |
| 482 | if ("type" in value.expr) { |
| 483 | let typeObj = getType(value.expr.type); |
| 484 | if (typeObj.kind === typeKinds.Fn) { |
| 485 | return renderFn(last); |
| 486 | } |
| 484 | 487 | } |
| 485 | | |
| 486 | 488 | return renderValue(last); |
| 487 | 489 | } |
| 488 | 490 | |