implemented dataflow analysis; activate via --warning[Uninit]:on
This commit is contained in:
parent
f7c0cc976d
commit
2aaa8f7909
6 changed files with 185 additions and 26 deletions
|
|
@ -190,7 +190,7 @@ proc semCase(c: PContext, n: PNode): PNode =
|
|||
var typ = CommonTypeBegin
|
||||
var hasElse = false
|
||||
case skipTypes(n.sons[0].Typ, abstractVarRange-{tyTypeDesc}).Kind
|
||||
of tyInt..tyInt64, tyChar, tyEnum:
|
||||
of tyInt..tyInt64, tyChar, tyEnum, tyUInt..tyUInt32:
|
||||
chckCovered = true
|
||||
of tyFloat..tyFloat128, tyString, tyError:
|
||||
nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue