mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
fixes strictnotnil for func, method, converter (#23083)
This commit is contained in:
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user