summary refs log tree commit diff stats
path: root/compiler/tccgen.nim
diff options
context:
space:
mode:
authorVindaar <basti90@gmail.com>2019-01-23 11:17:32 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-01-23 11:17:32 +0100
commitd9ee377517fe22e307592f4d6c019388600b5e57 (patch)
tree5306d7be2b53f6dbf98bd7c295478cc7d8bf172d /compiler/tccgen.nim
parentefa4b9adaa6babb46b463e785ccc06e3494bd342 (diff)
downloadNim-d9ee377517fe22e307592f4d6c019388600b5e57.tar.gz
fix #10339 by returning type attached to nkEmpty (#10370)
* fix #10339 by checking for nkObjConstr

* revert check for nkObjConstr, return type from nkEmpty node

The correct type needed in `semObjConstr` to fix #10339 is indeed
available, but attached to an `nkEmpty` node. These were previously
discarded in `semTypeNode`, which is used to extract the type for the
object.

* simplify return of PType from  `nkEmpty`

* also fixes #9866, add test case
Diffstat (limited to 'compiler/tccgen.nim')
0 files changed, 0 insertions, 0 deletions