Make method actually inline
问题 I forge a simple example to check the @inline annotation behavior: import scala.annotation.tailrec object InlineTest extends App { @inline private def corec(x : Int) : Int = rec(x - 1) @tailrec private def rec(x : Int) : Int = if (x < 3) x else { if (x % 3 == 0) corec(x-1) else rec(x-4) } @tailrec private def rec1(x : Int) : Int = if (x < 3) x else { if (x % 3 == 0) { val arg = x - 1 rec1(arg - 1) } else rec1(x-4) } Console.println( rec(args(0).toInt) ) } This example compiled without