diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-09-05 01:02:46 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-09-05 01:02:46 +0300 |
commit | 7d5e387a488200113664a3ffa60e5c63ec32c54b (patch) | |
tree | eba35e8e26f394d4393ab9392d2d973d4cf8cf30 /compiler/semstmts.nim | |
parent | 9a3963f51b6e5ed25befa766270b1bbf5155e090 (diff) | |
download | Nim-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