We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0bf175 + 341f337 commit 83c3f7aCopy full SHA for 83c3f7a
src/dotty/tools/dotc/core/Types.scala
@@ -2515,10 +2515,7 @@ object Types {
2515
object TypeAlias {
2516
def apply(alias: Type, variance: Int = 0)(implicit ctx: Context) =
2517
ctx.uniqueTypeAliases.enterIfNew(alias, variance)
2518
- def unapply(tp: TypeAlias): Option[Type] = tp match {
2519
- case tp: TypeAlias => Some(tp.alias)
2520
- case _ => None
2521
- }
+ def unapply(tp: TypeAlias): Option[Type] = Some(tp.alias)
2522
}
2523
2524
// ----- Annotated and Import types -----------------------------------------------
0 commit comments