Skip to content

[SR-15847] Circular required convenience init pattern not caught by compiler #58121

Open
@swift-ci

Description

@swift-ci
Previous ID SR-15847
Radar rdar://problem/89076581
Original Reporter Kaspra (JIRA User)
Type Bug
Environment

All OS, platforms and hardware on Swift 5.5.2

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 5.1Regression, SILDiagnostics
Assignee None
Priority Medium

md5: 9f39cfcea60e60ce15f9f5b749a489f0

Issue Description:

class Foo {

required convenience init(x: Int) {

self.init(x: x)

}

}

This circular init pattern is not caught by the compiler, but dropping the required or convenience individually gives a warning or error as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SILbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementationregressionswift 5.1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions