Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

UnextendedSealedTrait not noticing type abbreviations #59

Open
seanmcl opened this issue Jun 29, 2017 · 0 comments
Open

UnextendedSealedTrait not noticing type abbreviations #59

seanmcl opened this issue Jun 29, 2017 · 0 comments

Comments

@seanmcl
Copy link

seanmcl commented Jun 29, 2017

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 {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant