Suppose I'm writing a library in a statically typed language. I want to ensure that certain types of mistakes cause type errors, so my users are protected from the mistakes. I'd like tests (or something) that ensure that those mistakes cause type errors. How do I do it?
-
-
From what I can make out (and would of course expect to be the case) "fail to compile" tests are built into the TypeScript compiler repo. However extracting the mechanism they use to perform these tests into a standalone tool has so far been a bridge too far for me.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.