Skip to content

Instantly share code, notes, and snippets.

@okapies
Created January 30, 2014 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okapies/8705976 to your computer and use it in GitHub Desktop.
Save okapies/8705976 to your computer and use it in GitHub Desktop.
scalac is crazy with private[this] in value class
class HogeOps(val underlying: Any) extends AnyVal {
private
[this] // <-- !!!
def toOption[A](v: => A): Option[A] = ???
}
@okapies
Copy link
Author

okapies commented Jan 30, 2014

@xuwei-k That's exactly this problem. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment