Questions about what subtyping information Match Types / matches introduce #16020
                  
                    
                      s5bug
                    
                  
                
                  started this conversation in
                General Discussion
              
            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.
-
Given
the following programs typecheck:
These do not:
Why is it that a
Charcan be returned in anElem[C]position (implying thatChar <:< Elem[C]), but that evidence is not available?The goal here is essentially
but I don't know how to accomplish it.
Beta Was this translation helpful? Give feedback.
All reactions