fix(checker): check general subtype case for AppliedType

this adds the case where we check whether AppliedType <: Type, and delegates to the body

this may not be a legitimate rule, or may need to be refined
This commit is contained in:
2026-06-22 15:27:06 +02:00
parent 216c80f08c
commit 0ba0266bae

View File

@@ -181,6 +181,10 @@ class TypesRegistry:
return False
return True
# TODO: verify legitimacy
case (AppliedType(body=body), _):
return self.is_subtype(body, type2)
return False
# TODO: verify the logic in here