diff options
author | Vindaar <basti90@gmail.com> | 2019-01-23 11:17:32 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-23 11:17:32 +0100 |
commit | d9ee377517fe22e307592f4d6c019388600b5e57 (patch) | |
tree | 5306d7be2b53f6dbf98bd7c295478cc7d8bf172d /tests/js.nim | |
parent | efa4b9adaa6babb46b463e785ccc06e3494bd342 (diff) | |
download | Nim-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 'tests/js.nim')
0 files changed, 0 insertions, 0 deletions