Skip to content

Commit 1ce2c8e

Browse files
committed
Gardening: Migrate test suite to GH issues: NameLookup
1 parent 04f1cde commit 1ce2c8e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

test/NameLookup/InheritedConformance.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// RUN: cp %s %t/main.swift
33
// RUN: %target-swift-frontend -typecheck -primary-file %t/main.swift -emit-reference-dependencies-path - > %t.swiftdeps
44

5-
// SR-1267, SR-1270
5+
// https://github.com/apple/swift/issues/43875
6+
// https://github.com/apple/swift/issues/43878
7+
68
protocol Protocol {}
79
class ConformingClass: Protocol {}
810
class BaseClass<T: Protocol> {}

test/NameLookup/custom_attrs_ambiguous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import custom_attrs_A
66
import custom_attrs_B
77

8-
// SR-13470
8+
// https://github.com/apple/swift/issues/55912
99

1010
struct Test {
1111
@Wrapper var x: Int = 17

test/NameLookup/name_lookup.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ class ThisDerived1 : ThisBase1 {
288288
self.Type // expected-error {{type 'ThisDerived1' has no member 'Type'}}
289289
}
290290

291-
// FIXME(SR-15250): Partial application diagnostic is applied incorrectly for some test cases.
291+
// FIXME: Partial application diagnostic is applied incorrectly for some
292+
// test cases (https://github.com/apple/swift/issues/57572).
292293
class func staticTestSuper1() {
293294
super.baseInstanceVar = 42 // expected-error {{member 'baseInstanceVar' cannot be used on type 'ThisBase1'}}
294295
super.baseProp = 42 // expected-error {{member 'baseProp' cannot be used on type 'ThisBase1'}}
@@ -585,8 +586,8 @@ func foo1() {
585586
_ = MyGenericEnum<Int>.OneTwo // expected-error {{enum type 'MyGenericEnum<Int>' has no case 'OneTwo'; did you mean 'oneTwo'?}}{{26-32=oneTwo}}
586587
}
587588

588-
// SR-4082
589-
func foo2() {
589+
// https://github.com/apple/swift/issues/46665
590+
do {
590591
let x = 5
591592
if x < 0, let x = Optional(1) { } // expected-warning {{immutable value 'x' was never used; consider replacing with '_' or removing it}}
592593
}
@@ -649,8 +650,8 @@ struct PatternBindingWithTwoVars3 { var x = y, y = x }
649650
// expected-note@-11 {{through reference here}}
650651
// expected-note@-12 {{through reference here}}
651652

652-
// https://bugs.swift.org/browse/SR-9015
653-
func sr9015() {
653+
// https://github.com/apple/swift/issues/51518
654+
do {
654655
let closure1 = { closure2() } // expected-error {{circular reference}} expected-note {{through reference here}} expected-note {{through reference here}}
655656
let closure2 = { closure1() } // expected-note {{through reference here}} expected-note {{through reference here}} expected-note {{through reference here}}
656657
}

0 commit comments

Comments
 (0)