Skip to content

Commit 6704aab

Browse files
committed
Gardening: Migrate test suite to GH issues: decl/inherit
1 parent edd4010 commit 6704aab

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

test/decl/inherit/inherit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class C : B, A { } // expected-error{{multiple inheritance from classes 'B' and
1818
// Superclass in the wrong position
1919
class D : P, A { } // expected-error{{superclass 'A' must appear first in the inheritance clause}}{{12-15=}}{{11-11=A, }}
2020

21-
// SR-8160
21+
// https://github.com/apple/swift/issues/50692
2222
class D1 : Any, A { } // expected-error{{superclass 'A' must appear first in the inheritance clause}}{{15-18=}}{{12-12=A, }}
2323

2424
class D2 : P & P1, A { } // expected-error{{superclass 'A' must appear first in the inheritance clause}}{{18-21=}}{{12-12=A, }}

test/decl/inherit/initializer.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@ func testClassInGenericFunc<T>(t: T) {
111111
}
112112

113113

114-
// <https://bugs.swift.org/browse/SR-5056> Required convenience init inhibits inheritance
115-
116-
class SR5056A {
114+
// https://github.com/apple/swift/issues/47632
115+
// Required convenience 'init' inhibits inheritance
116+
do {
117+
class A {
117118
required init(a: Int) {}
118-
}
119+
}
119120

120-
class SR5056B : SR5056A {
121+
class B : A {
121122
required convenience init(b: Int) {
122123
self.init(a: b)
123124
}
124-
}
125+
}
125126

126-
class SR5056C : SR5056B {}
127+
class C : B {}
127128

128-
func useSR5056C() {
129-
_ = SR5056C(a: 0)
130-
_ = SR5056C(b: 0)
129+
_ = C(a: 0)
130+
_ = C(b: 0)
131131
}

0 commit comments

Comments
 (0)