Match type deduction does not work for union types - bug or feature? #19989
              
                Unanswered
              
          
                  
                    
                      scf37
                    
                  
                
                  asked this question in
                General Question
              
            Replies: 1 comment
-
| Well it has always been the case that a variable pattern is exactly the same type as the scrutinee, it might break currently compiling code to infer more precise types | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    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.
-
I was hoping v type to be deduced as
E.B | E.Cbut it seems to be justEBeta Was this translation helpful? Give feedback.
All reactions