Concept Flow - How assignment compatibility is checked
Start: Have two types
Check if source type fits target type
Are properties compatible?
No→Error: Incompatible
Yes
Check method signatures compatibility
Check optional and readonly modifiers
Result: Assignment allowed or not
The process checks if the source type can fit into the target type by comparing properties, methods, and modifiers step-by-step.