Skip to content

Commit

Permalink
fixes strictnotnil for func, method, converter (nim-lang#23083)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Dec 19, 2023
1 parent 434e062 commit 6618448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ proc trackProc*(c: PContext; s: PSym, body: PNode) =
dataflowAnalysis(s, body)

when false: trackWrites(s, body)
if strictNotNil in c.features and s.kind == skProc:
if strictNotNil in c.features and s.kind in {skProc, skFunc, skMethod, skConverter}:
checkNil(s, body, g.config, c.idgen)

proc trackStmt*(c: PContext; module: PSym; n: PNode, isTopLevel: bool) =
Expand Down

0 comments on commit 6618448

Please sign in to comment.