Hi, I would like to use an Object in a Zeppelin notebook, something like:
object JsonKey {
sealed abstract class JsonKey(_name: String) {
def name = _name
}
case object Email extends JsonKey("email")
case object FacebookId extends JsonKey("facebook_id")
}
however, when later I try to use it in a function definition within a
trait, I get an error:
<console>:45: error: not found: type JsonKey jsonKey: JsonKey,
What is the problem, and is there a workaround for it?
Regards,
Alexander fedulov
