Support strict-unsealed-patmat #23051
                  
                    
                      kubukoz
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In Scala 2.13, there's an
-Xlint:strict-unsealed-patmatcompiler flag that makes the exhaustivity checking warn in situations where you pattern match on an unsealed type.Non-exhaustive pattern matches can be a source of countless errors, so I believe having the option to opt into such checking would be really beneficial for safety of Scala 3 code.
Can we please have such an option?
Beta Was this translation helpful? Give feedback.
All reactions