Skip to content

Commit efe8fde

Browse files
committed
Add formerly-crashing test case for SR-4786 / rdar://problem/31955862.
(cherry picked from commit 2f00a08)
1 parent 9fdd79f commit efe8fde

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: not %target-swift-frontend %s -typecheck
2+
3+
public protocol _UTFEncoding {
4+
associatedtype EncodedScalar where EncodedScalar == Int
5+
}
6+
7+
public protocol UnicodeEncoding {
8+
associatedtype EncodedScalar: BidirectionalCollection
9+
}
10+
11+
public protocol _UTFParser {
12+
associatedtype Encoding: UnicodeEncoding, _UTFEncoding
13+
}

0 commit comments

Comments
 (0)