Skip to content

Commit 8ea96e9

Browse files
authored
[test] Add minimized test case from SR-7337 (#17524)
Because we've changed how conformances represent associated types since Swift 4.2 branched, the error described there no longer occurs. But we still want to make sure we don't regress. https://bugs.swift.org/browse/SR-7337
1 parent 025af31 commit 8ea96e9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-build-swift -emit-module -o %t/Lib.swiftmodule %s -DLIB
3+
// RUN: %target-build-swift -emit-module -o %t/main.swiftmodule -I %t %s
4+
5+
#if LIB
6+
7+
protocol Proto {}
8+
9+
open class Base<T> {}
10+
public struct ArbitraryStruct {}
11+
12+
extension Base: Proto where T: Proto {}
13+
14+
#else // LIB
15+
16+
import Lib
17+
18+
final class ConcreteSub: Base<ArbitraryStruct> {}
19+
20+
#endif // LIB

0 commit comments

Comments
 (0)