Skip to content

Instantly share code, notes, and snippets.

@yangbajing
Created January 16, 2013 09:21
Show Gist options
  • Save yangbajing/4545802 to your computer and use it in GitHub Desktop.
Save yangbajing/4545802 to your computer and use it in GitHub Desktop.
object S extends App {
implicit def ddd(i: Long): DDLong = new DDLong(i)
println(100.toDouble)
println(100.toDate)
}
class DDLong(l: Long) {
def toDate = new java.util.Date(l)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment