File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
branches/master-next/validation-test/compiler_crashers_2 Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: fbe8e56e8b302bdc6b21e81527c7dfe12be48825
3
+ refs/heads/master-next: aa560bf78db7c0c38d21f56bd8c66f875d291e29
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
Original file line number Diff line number Diff line change
1
+ // RUN: not --crash %target-swift-emit-silgen %s
2
+
3
+ protocol Pub {
4
+ associatedtype Other
5
+ associatedtype Failure : Error
6
+ }
7
+
8
+ class AnyPub < Other, Failure: Error > { }
9
+
10
+ extension Pub {
11
+ func erase( ) -> AnyPub < Other , Failure > {
12
+ return AnyPub < Other , Failure > ( )
13
+ }
14
+ }
15
+
16
+ protocol ObsObj : Pub {
17
+ associatedtype NeverPub : Pub where Self. NeverPub. Failure == Never
18
+ }
19
+
20
+ class Subject < Other, Failure: Error > : Pub { }
21
+
22
+ extension Pub where Other: ObsObj , Other. NeverPub: Subject < Int , Error > {
23
+ static func f( ) -> AnyPub < Other . NeverPub . Other , Other . NeverPub . Failure > {
24
+ return Subject < Other . NeverPub . Other , Other . NeverPub . Failure > ( ) . erase ( )
25
+ }
26
+ }
You can’t perform that action at this time.
0 commit comments