fixes #578
This commit is contained in:
parent
cf689f7472
commit
4d9b2f671a
4 changed files with 25 additions and 13 deletions
|
|
@ -74,7 +74,7 @@ proc getSysType(kind: TTypeKind): PType =
|
|||
of tyUInt64: result = sysTypeFromName("uint64")
|
||||
of tyFloat: result = sysTypeFromName("float")
|
||||
of tyFloat32: result = sysTypeFromName("float32")
|
||||
of tyFloat64: result = sysTypeFromName("float64")
|
||||
of tyFloat64: return sysTypeFromName("float64")
|
||||
of tyFloat128: result = sysTypeFromName("float128")
|
||||
of tyBool: result = sysTypeFromName("bool")
|
||||
of tyChar: result = sysTypeFromName("char")
|
||||
|
|
|
|||
|
|
@ -1205,7 +1205,7 @@ proc semStmtList(c: PContext, n: PNode): PNode =
|
|||
if n.sons[i].typ == EnforceVoidContext or usesResult(n.sons[i]):
|
||||
voidContext = true
|
||||
n.typ = EnforceVoidContext
|
||||
elif i != last or voidContext:
|
||||
if i != last or voidContext:
|
||||
discardCheck(n.sons[i])
|
||||
else:
|
||||
n.typ = n.sons[i].typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue