Skip to content

[SR-12236] Getting "Circular reference" after update to Swift 5.2 #54662

@swift-ci

Description

@swift-ci
Previous ID SR-12236
Radar rdar://problem/59640025
Original Reporter RomanPodymov (JIRA User)
Type Bug
Environment

Xcode 11.4 beta, Swift 5.2.

Additional Detail from JIRA
Votes 3
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 98af4db69d3431110b9adb14b03d7384

Issue Description:

Consider the following code:

protocol P { }
class A {
    typealias B = P
}
extension A: A.B { }

It is compiling without errors in Swift 5.1.3/Xcode 11.3.1, but in Swift 5.2/Xcode 11.4 beta getting error "Circular reference". I did not find information about such behavior in the Swift 5.2 release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions