summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-09-05 01:02:46 +0300
committerZahary Karadjov <zahary@gmail.com>2014-09-05 01:02:46 +0300
commit7d5e387a488200113664a3ffa60e5c63ec32c54b (patch)
treeeba35e8e26f394d4393ab9392d2d973d4cf8cf30 /compiler/semstmts.nim
parent9a3963f51b6e5ed25befa766270b1bbf5155e090 (diff)
downloadNim-7d5e387a488200113664a3ffa60e5c63ec32c54b.tar.gz
mostly fixes #1339
The compiler hangs were caused by the interaction of tyError and the instantiation caches.
For procs, the cache wasn't able to find previously compiled proc featuring tyError in the signature.
For types, the unresolved type parameters leading to tyError were not replaced everywhere leading
to endless replaceTypeVarsT recursion for cyclic types.

The fix is still not perfect, because the handling of tyError in other places in the compiler doesn't seem
to be complete and the first test case now results in internal error (still, much better than a hang blocking
your IDE).
Diffstat (limited to 'compiler/semstmts.nim')
0 files changed, 0 insertions, 0 deletions