See https://github.com/scala/scala/pull/7068. Tentatively assigning to @OlivierBlanvillain since he wrote the current spec for name-based pattern matching in Dotty.