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/Constraints/diagnostics.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ func rdar20142523() {
161
161
// <rdar://problem/21080030> Bad diagnostic for invalid method call in boolean expression: (_, ExpressibleByIntegerLiteral)' is not convertible to 'ExpressibleByIntegerLiteral
162
162
func rdar21080030(){
163
163
vars="Hello"
164
-
if s.count()==0{} // expected-error{{cannot call value of non-function type 'String.IndexDistance' (aka 'Int')}}{{13-15=}}
164
+
if s.count()==0{} // expected-error{{cannot call value of non-function type 'Int'}}{{13-15=}}
165
165
}
166
166
167
167
// <rdar://problem/21248136> QoI: problem with return type inference mis-diagnosed as invalid arguments
0 commit comments