mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-23 09:19:39 +00:00
add comment
This commit is contained in:
parent
14628a29ef
commit
5556ebd816
1 changed files with 5 additions and 0 deletions
|
|
@ -1867,6 +1867,11 @@ impl<'db> SpecializationBuilder<'db> {
|
|||
}
|
||||
|
||||
(formal, Type::ProtocolInstance(actual_protocol)) => {
|
||||
// TODO: This will only handle protocol classes that explicit inherit
|
||||
// from other generic protocol classes by listing it as a base class.
|
||||
// To handle classes that implicitly implement a generic protocol, we
|
||||
// will need to check the types of the protocol members to be able to
|
||||
// infer the specialization of the protocol that the class implements.
|
||||
if let Some(actual_nominal) = actual_protocol.as_nominal_type() {
|
||||
return self.infer_map_impl(
|
||||
formal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue