summary refs log tree commit diff stats
path: root/tests/misc/tcast.nim
Commit message (Collapse)AuthorAgeFilesLines
* implement RFCs/294 ; disallow enum <=> enum conversion (#16351)Timothee Cour2021-04-031-5/+31
| | | | | | | | | | | * fix https://github.com/nim-lang/RFCs/issues/294 ; disallow enum <=> enum conversion * fix the runnableExamples that was the instigator of this RFC * legacy -d:nimLegacyConvEnumEnum * use -d:nimLegacyConvEnumEnum in important_package nimgame2 * add test for enum cast * improve changelog * add changelog: Changes affecting backward compatibility * cleanup changelog * fix changelog
* Disallow nil dereference at compile time (#16032)cooldome2020-11-181-1/+2
| | | | | | | | | | | | | * bring back the semfold of nil * remove space * fix test * proc type can't be dereferenced * disallow nil dereference at compile time * changelog
* Semfold for nil cast (#16030)cooldome2020-11-181-3/+4
| | | | | | | | | * bring back the semfold of nil * remove space * fix test * proc type can't be dereferenced
* combine PR#16009 and PR#16012 (#16024)flywind2020-11-181-0/+44
| | | | | | | | * fix #15623 * add testcase for #15623 * add testcase * combine #16009 * support casting nil to NilableTypes in VM
* Reject casts to builtin typeclasses (#14788)Danil Yarantsev2020-06-241-1/+8
| | | | | * Closes #14231, closes #14452 * Merge test to tcast.nim
* make megatest green againAndreas Rumpf2019-03-051-0/+1
|
* restrict casting for closure. (#5948); fixes #5742Parashurama2017-06-071-0/+23
* restrict casting for closure. This commit forbid casting a closure to anything other than another closure. use rawEnv/rawProc to access underlaying pointers. * better error message for closure cast * fixes #5742