Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0166-issue-50772-2.swift

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()
}
}