[red-knot] Add tests for member lookup on union types (#14296)

## Summary

- Write tests for member lookups on union types
- Remove TODO comment

part of: #14022

## Test Plan

New MD tests
This commit is contained in:
David Peter 2024-11-12 14:11:55 +01:00 committed by GitHub
parent 13a1483f1e
commit 907047bf4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 84 additions and 4 deletions

View file

@ -1108,7 +1108,6 @@ impl<'db> Type<'db> {
possibly_unbound = true;
}
Symbol::Type(ty_member, member_boundness) => {
// TODO: raise a diagnostic if member_boundness indicates potential unboundness
if member_boundness == Boundness::PossiblyUnbound {
possibly_unbound = true;
}