Skip to content

Commit a1255a8

Browse files
authored
Merge pull request swiftlang#33549 from slavapestov/regression-test-sr13141
Add regression test for https://bugs.swift.org/browse/SR-13141
2 parents b93563e + b183c69 commit a1255a8

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)