mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
347 B
Swift
16 lines
347 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
struct Box<Representation, T> {
|
|
let value: Representation
|
|
}
|
|
enum Repr {}
|
|
extension Repr {
|
|
typealias RawEnum = ()
|
|
}
|
|
extension Box where Representation == Repr, T == Representation.RawEnum {
|
|
init(rawEnumValue: Representation.RawEnum) {
|
|
let _: ().Type = T.self
|
|
fatalError()
|
|
}
|
|
}
|