Created
January 30, 2014 10:29
-
-
Save okapies/8705976 to your computer and use it in GitHub Desktop.
scalac is crazy with private[this] in value class
This file contains 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
class HogeOps(val underlying: Any) extends AnyVal { | |
private | |
[this] // <-- !!! | |
def toOption[A](v: => A): Option[A] = ??? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment