Skip to content

How tot define wildcard patterns in 3.0.x #12472

Discussion options

You must be logged in to vote

We need a wildcard but that is blocked by issue #12200.

The solution for now is to add a Bind pattern as las pattern that binds to anything and just ignore the binding.

case x => 
// Instead of 
case _ =>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nicolasstucki
Comment options

Answer selected by nicolasstucki
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12463 on May 14, 2021 08:27.