You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
sealed trait HttpStatusCode {
val intValue: Int
}
object HttpStatusCode {
private type T = HttpStatusCode
case object BadRequest extends T { val intValue = 400 }
case object Unauthorized extends T { val intValue = 403 }
case object InternalServerError extends T { val intValue = 500 }
}
gives
warning: [UnextendedSealedTrait] This sealed trait is never extended
sealed trait HttpStatusCode {
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gives
The text was updated successfully, but these errors were encountered: