Be careful with writing that compiler, I decided to add a type system to my hobby language a while back and now I'm doing research in type theory. It's a slippery slope.
I'm quite interested in type theory, I just don't understand it well enough yet. The next (major) goal for my calculator is to produce native code via LLVM. Maybe integrating LLVM will help me find an IL that supports inlining... — my head is full with fun ideas :)