mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
331 B
Swift
17 lines
331 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// https://github.com/apple/swift/issues/50772
|
|
|
|
struct Box<Representation> {
|
|
let value: Representation
|
|
}
|
|
enum Repr {}
|
|
extension Repr {
|
|
typealias RawEnum = ()
|
|
}
|
|
extension Box where Representation == Repr {
|
|
init(rawEnumValue: Representation.RawEnum) {
|
|
fatalError()
|
|
}
|
|
}
|