Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 320 Bytes
package jvm_summit
class CallMe {
final def count(in: Int): Int =
if (in >= 1000) in else count(in + 1)
}
class NoTail {
def count(in: Int): Int =
if (in >= 1000) in else count(in + 1)
}
class WhyNo extends NoTail {
override def count(in: Int): Int =
if (in > 500) in else super.count(in)
}