JetBrains/intellij-scala — pull request #5 by jozic (2012-08-04 21:20:52+00:00)
Title: make tailrec checker work with recursive curried functions + some refactorings

Currently IDEA doesn't recognize curried tailrec recursive functions correctly. This patch fixes that.
I've also refactored some of the methods to be more Scala-ish and readable, please review them attentively. My performance tests have showed that there should no be performance impact, but you probably know better :)