We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79214c commit cec0821Copy full SHA for cec0821
validation-test/compiler_crashers_2/sr11108.swift
@@ -0,0 +1,27 @@
1
+// RUN: not --crash %target-swift-emit-silgen %s
2
+
3
+// REQUIRES: asserts
4
5
+protocol Example {
6
+ associatedtype Signed: SignedInteger
7
+ associatedtype SP: StringProtocol
8
+ var string: String { get }
9
+}
10
+extension Example {
11
+ var string: String {
12
+ return "Foo"
13
+ }
14
15
+class MyClass<T: SignedInteger, S: StringProtocol>: Example {
16
+ typealias Signed = T
17
+ typealias SP = S
18
19
+extension MyClass where T == Int, S == String {
20
21
+ return "Bar"
22
23
24
25
+let myclass = MyClass<Int, String>()
26
27
+print(myclass.string)
0 commit comments