summaryrefslogblamecommitdiff
path: root/test/files/pos/lexical.scala
blob: 8c29513bb5792d4ff655b54e361acfae260fe038 (plain) (tree)
1
2
3
4
5
6
7
8
9




                            
                         


                                                        
// #2081
class RichInt(n: Int) {
  def days = 1000*60*60*24*n
}

object Test extends App {
  implicit def RichInt(n: Int): RichInt = new RichInt(n)
  println(10.days)
}