Skip to content

[SR-12085] Clean up TypeCheckType so it never returns Type() #54521

Closed
@CodaFi

Description

@CodaFi
Previous ID SR-12085
Radar rdar://58879303
Original Reporter @CodaFi
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, StarterBug, TypeChecker
Assignee dfsweeney (JIRA)
Priority Medium

md5: 3ff0e16b54d9cecb5d8f2423279ab61e

Issue Description:

Returning the null Type() is a legacy behavior that used to drive the now-dead-and-gone IterativeTypeChecker. That we return the null Type at all just serves to cause crashes in downstream components. All of these paths should diagnose and return ErrorType instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions