Join GitHub today
Don’t consider type arguments inside a constraint as constraints. #1870
This better reflects their use. It allows arrow types and tuples to
As a side effect, the default capability in these positions now
Also properly deny arrow types from appearing in constraints,
I'd like to add some positive tests for arrows and tuples in these positions,
I agree - I don't think any of the existing test files are a good fit. Probably the best bet would be to create a new test file called
However, since this is already a complete fix for the other bugs you noticed, I'll go ahead and merge this PR. You can feel free to add the positive tests in another PR if you wish.