Skip to content

Commit b183c69

Browse files
committed
1 parent 18af945 commit b183c69

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend -emit-ir %s
2+
3+
public protocol Book {
4+
associatedtype Name
5+
}
6+
public protocol BookDecorator: Book where Name == DecoratedBook.Name {
7+
associatedtype DecoratedBook: Book
8+
associatedtype Name = DecoratedBook.Name
9+
}
10+
public class ConcreteBookDecorator<T: Book>: BookDecorator {
11+
public typealias DecoratedBook = T
12+
}

0 commit comments

Comments
 (0)