Files
swift-mirror/validation-test/compiler_crashers_fixed/0166-issue-50772-2.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

22 lines
631 B
Swift

// RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// https://github.com/apple/swift/issues/50772
struct Box<Representation, T> {
let value: Representation
}
enum Repr {}
extension Repr {
typealias RawEnum = ()
}
// CHECK-LABEL: ExtensionDecl line={{.*}} base=Box
// CHECK-NEXT: Generic signature: <Representation, T where Representation == Repr, T == ()>
extension Box where Representation == Repr, T == Representation.RawEnum {
init(rawEnumValue: Representation.RawEnum) {
let _: ().Type = T.self
fatalError()
}
}