Skip to content

Commit e0ae1af

Browse files
committed
Gardening: Migrate test suite to GH issues: Misc
1 parent c1908f6 commit e0ae1af

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/Misc/misc_diagnostics.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,11 @@ func tuple_splat2(_ q : (a : Int, b : Int)) {
169169
tuple_splat2(1, b: 2) // expected-error {{global function 'tuple_splat2' expects a single parameter of type '(a: Int, b: Int)'}} {{16-16=(}} {{23-23=)}}
170170
}
171171

172-
// SR-1612: Type comparison of foreign types is always true.
173-
protocol SR1612_P {}
174-
class SR1612: NSObject, SR1612_P {}
172+
// https://github.com/apple/swift/issues/44221
173+
// Type comparison of foreign types is always true.
174+
175+
protocol P_44221 {}
176+
class C_44221: NSObject, P_44221 {}
175177
// Existentials
176178
func is_foreign_anyobject(a: AnyObject) -> Bool {
177179
return a is CGColor // expected-warning {{'is' test is always true because 'CGColor' is a Core Foundation type}}
@@ -181,12 +183,12 @@ func is_foreign_any(a: Any) -> Bool {
181183
return a is CGColor // expected-warning {{'is' test is always true because 'CGColor' is a Core Foundation type}}
182184
}
183185

184-
func is_foreign_p(a: SR1612_P) -> Bool {
186+
func is_foreign_p(a: P_44221) -> Bool {
185187
return a is CGColor // expected-warning {{'is' test is always true because 'CGColor' is a Core Foundation type}}
186188
}
187189

188190
// Concrete type.
189-
func is_foreign_concrete(a: SR1612) -> Bool {
191+
func is_foreign_concrete(a: C_44221) -> Bool {
190192
return a is CGColor // False at runtime
191193
}
192194
// Concrete foundation.

0 commit comments

Comments
 (0)