mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
20 lines
330 B
Swift
20 lines
330 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// https://github.com/apple/swift/issues/56522
|
|
|
|
@propertyWrapper
|
|
struct SomeLongFooName<Holder, T> {
|
|
var wrappedValue: T
|
|
|
|
init(wrappedValue: T) {
|
|
self.wrappedValue = wrappedValue
|
|
}
|
|
}
|
|
|
|
|
|
struct Bar {
|
|
typealias Foo<T> = SomeLongFooName<Self, T>
|
|
|
|
@Foo var baz: Bool = false
|
|
}
|