blob: 034b84bf0f94e655b34d0fedbed6ec9d17c1220c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// #2081
class RichInt(n: Int) {
def days = 1000*60*60*24*n
}
object Test extends Application {
implicit def RichInt(n: Int): RichInt = new RichInt(n)
println(10.days)
}
|