Skip to content

[SR-5087] "Abort Trap: 6" while switching over an indirect generic enum #47663

@swift-ci

Description

@swift-ci
Previous ID SR-5087
Radar None
Original Reporter Vermeulen (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 37eef94e55e510c3c5634045adb6b40a

Issue Description:

enum Foo<T> {
    indirect case foo(T, Foo)
    
    func bar() {
        switch self {
        case .foo(let x, _), .foo(_, .foo(let x, _)): break
        }
    }
}

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