mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
178 B
Swift
16 lines
178 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
enum E { case A }
|
|
|
|
class C<T> {
|
|
struct Nested {
|
|
var value: T
|
|
}
|
|
}
|
|
|
|
class D: C<E> {
|
|
func test() {
|
|
_ = Nested(value: .A)
|
|
}
|
|
}
|