abstract case class Value(val code: String, val decription: String)
case object Undef extends Value("", "undef" )
case object I_IATA_PricedByFareServer extends Value("I", "IATA priced by Fare Server" )
case object A_ATAF_PricedByFareServer extends Value("A", "ATAF priced by Fare Server")
case object M_ManuallyCreatedTST extends Value("M", "Priced by Manually created TST (with fare server interaction)")
case object N_ManuallyCreatedTST_WFSI extends Value("N", "Priced by Manually created TST (without fare server interaction for future use)")
case object B_NegotatiatedRateForG extends Value("B", "Negotatiated Rate (F) or (G) that has been manually updated")
case object G_NegotatiatedWithAgentConsolidator extends Value("G", "Negotiated Rate with Agent/Consolidator as net updater")
case object F_NegotatiatedWithAirline extends Value("G", "Negotiated Rate with Airline as net updater")
case object O_RBD_override extends Value("O", "RBD override")
case object T_IATA_InclusiveTour extends Value("T", "IATA priced Inclusive Tour (IT) priced by Fare Server")
when compiling with -deprecation:
scala: case class `object Undef' has case ancestor `class Value'. Case-to-case inheritance has potentially dangerous bugs which are unlikely to be fixed. You are strongly encouraged to instead use extractors to pattern match on non-leaf nodes.
case object Undef extends Value("", "undef" )
^
alguna idea de como evitarlo?