Skip to content

Commit 0c749b2

Browse files
committed
Gardening: Migrate test suite to GH issues: decl/ext
1 parent da56654 commit 0c749b2

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

test/decl/ext/extensions.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ extension X3 {
122122
func foo() -> Int { return 0 }
123123
}
124124

125-
// Make sure the test case from https://bugs.swift.org/browse/SR-3847 doesn't
126-
// cause problems when the later extension is incorrectly nested inside another
127-
// declaration.
125+
// Make sure the test case from https://github.com/apple/swift/issues/46432
126+
// doesn't cause problems when the later extension is incorrectly nested inside
127+
// another declaration.
128128
extension C1.NestedStruct {
129129
static let originalValue = 0
130130
}
@@ -135,7 +135,7 @@ struct WrapperContext {
135135
}
136136

137137
// Class-constrained extension where protocol does not impose class requirement
138-
// SR-11298
138+
// https://github.com/apple/swift/issues/53699
139139

140140
protocol DoesNotImposeClassReq_1 {}
141141

@@ -352,11 +352,12 @@ extension Tree.BoughPayload.Contents {
352352
// expected-note@-2 {{did you mean to extend 'Nest<Int>' instead?}}
353353
}
354354

355-
// SR-10466 Check 'where' clause when referencing type defined inside extension
356-
struct SR_10466<T> {
357-
var a : A // expected-error {{'SR_10466<T>.A' (aka 'Int') requires the types 'T' and 'Never' be equivalent}}
355+
// https://github.com/apple/swift/issues/52866
356+
// Check 'where' clause when referencing type defined inside extension.
357+
struct S_52866<T> {
358+
var a : A // expected-error {{'S_52866<T>.A' (aka 'Int') requires the types 'T' and 'Never' be equivalent}}
358359
}
359-
extension SR_10466 where T == Never { // expected-note {{requirement specified as 'T' == 'Never' [with T = T]}}
360+
extension S_52866 where T == Never { // expected-note {{requirement specified as 'T' == 'Never' [with T = T]}}
360361
typealias A = Int
361362
}
362363

test/decl/ext/generic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ extension Array2 where QQQ : VVV {}
175175
// expected-error@-1 {{cannot find type 'QQQ' in scope}}
176176
// expected-error@-2 {{cannot find type 'VVV' in scope}}
177177

178-
// https://bugs.swift.org/browse/SR-9009
178+
// https://github.com/apple/swift/issues/51512
179179
func foo() {
180180
extension Array where Element : P1 {
181181
// expected-error@-1 {{declaration is only valid at file scope}}

test/decl/ext/ordering.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ extension OtherOuter5 {
122122
class Super {}
123123
}
124124

125-
/// SR-5993
125+
/// https://github.com/apple/swift/issues/48550
126126

127127
enum Outer5A {}
128128

test/decl/ext/protocol.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ extension ExtendedProtocol where Self : DerivedWithAlias {
288288
func f4(x: NestedNominal) {}
289289
}
290290

291-
// rdar://problem/21991470 & https://bugs.swift.org/browse/SR-5022
291+
// rdar://problem/21991470
292+
// https://github.com/apple/swift/issues/47598
293+
292294
class NonPolymorphicInit {
293295
init() { } // expected-note {{selected non-required initializer 'init()'}}
294296
}

test/decl/ext/specialize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let _ = [1, 2, 3].makeString() // expected-error 3 {{cannot convert value of typ
1515

1616
extension Set<_> {} // expected-error {{cannot extend a type that contains placeholders}}
1717

18-
// https://bugs.swift.org/browse/SR-4875
18+
// https://github.com/apple/swift/issues/47452
1919

2020
struct Foo<T, U> {
2121
var x: T

test/decl/ext/sr_12460.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s 2>&1 | %FileCheck -check-prefix CHECK %s
22

3-
// Test that we don't crash when validating members inside an extension with no type name.
3+
// https://github.com/apple/swift/issues/54900
4+
//
5+
// Test that we don't crash when validating members inside an extension with no
6+
// type name.
47

58
// CHECK: :[[@LINE+1]]:11: error: expected type name in extension declaration
69
extension {

0 commit comments

Comments
 (0)