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.
2 parents ef04112 + 6459333 commit 9f73620Copy full SHA for 9f73620
test/decl/inherit/initializer.swift
@@ -110,3 +110,22 @@ func testClassInGenericFunc<T>(t: T) {
110
_ = B(t: t)
111
}
112
113
+
114
+// <https://bugs.swift.org/browse/SR-5056> Required convenience init inhibits inheritance
115
116
+class SR5056A {
117
+ required init(a: Int) {}
118
+}
119
120
+class SR5056B : SR5056A {
121
+ required convenience init(b: Int) {
122
+ self.init(a: b)
123
+ }
124
125
126
+class SR5056C : SR5056B {}
127
128
+func useSR5056C() {
129
+ _ = SR5056C(a: 0)
130
+ _ = SR5056C(b: 0)
131
0 commit comments