If you don't test the behavior of your code then it is wrong. Whether the code could in theory be compiled isn't a very good test case.
Static type checking has a measured bug catch rate of <1%. So the quality of any code where the programmer depends on static typing to verify correctness rather than unit tests is very very low.