Skip to content

Instantly share code, notes, and snippets.

@spidaman
Created July 22, 2010 02:08
Show Gist options
  • Select an option

  • Save spidaman/485470 to your computer and use it in GitHub Desktop.

Select an option

Save spidaman/485470 to your computer and use it in GitHub Desktop.
import scala.runtime.RichLong
def seconds = new RichLong(System.currentTimeMillis()/1000)
var now = seconds
var later = seconds
// error: value to is not a member of scala.runtime.RichLong
now to later
// UPDATE: this was caused by writing code against the 2.8 docs but running
// against 2.7.7 ! It would be nice if the docs mentioned which version a new
// method was introduced in ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment