Skip to content

Commit

Permalink
Merge pull request #1 from milseman/stdlib-string-no-inlinable
Browse files Browse the repository at this point in the history
[test] Update diagnostic test for SR-7599
  • Loading branch information
eeckstein committed May 4, 2018
2 parents 9a96120 + dfa281d commit 3fca805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Constraints/diagnostics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ func rdar20142523() {
// <rdar://problem/21080030> Bad diagnostic for invalid method call in boolean expression: (_, ExpressibleByIntegerLiteral)' is not convertible to 'ExpressibleByIntegerLiteral
func rdar21080030() {
var s = "Hello"
if s.count() == 0 {} // expected-error{{cannot call value of non-function type 'Int'}}{{13-15=}}
// SR-7599: This should be `cannot_call_non_function_value`
if s.count() == 0 {} // expected-error{{cannot invoke 'count' with no arguments}}
}

// <rdar://problem/21248136> QoI: problem with return type inference mis-diagnosed as invalid arguments
Expand Down

0 comments on commit 3fca805

Please sign in to comment.