Created
July 22, 2010 02:08
-
-
Save spidaman/485470 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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