You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Misc/misc_diagnostics.swift
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -169,9 +169,11 @@ func tuple_splat2(_ q : (a : Int, b : Int)) {
169
169
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=)}}
170
170
}
171
171
172
-
// SR-1612: Type comparison of foreign types is always true.
173
-
protocolSR1612_P{}
174
-
classSR1612:NSObject,SR1612_P{}
172
+
// https://github.com/apple/swift/issues/44221
173
+
// Type comparison of foreign types is always true.
174
+
175
+
protocolP_44221{}
176
+
classC_44221:NSObject,P_44221{}
175
177
// Existentials
176
178
func is_foreign_anyobject(a:AnyObject)->Bool{
177
179
return a is CGColor // expected-warning {{'is' test is always true because 'CGColor' is a Core Foundation type}}
0 commit comments