Skip to content

Conversation

@graydon
Copy link
Contributor

@graydon graydon commented Sep 29, 2016

A small fix in diagnostic ordering to prefer noting when a callee is inaccessible before digging into the args (and failing to resolve them against the callee anyways). Replaces an "ambiguous type" error with the true cause.

Noted in QoI rdar://problem/27982012 , test already exists, this just fixes it.

@graydon
Copy link
Contributor Author

graydon commented Sep 29, 2016

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor

Are you able to merge PRs yourself, @graydon?

@graydon
Copy link
Contributor Author

graydon commented Oct 3, 2016

@slavapestov yes but I figured I ought to get someone to review / approve, no?

@lattner
Copy link
Contributor

lattner commented Oct 5, 2016

LGTM @graydon!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, you shouldn't drop this comment line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, @DougGregor suggested I remove it!
(the case is labeled by rdar number anyways, and there's git history)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I put the comment back)

@graydon graydon force-pushed the rdar-27982012-poor-diagnostic branch from 1a242a1 to 0d5420b Compare October 7, 2016 16:35
@graydon
Copy link
Contributor Author

graydon commented Oct 8, 2016

@swift-ci please test and merge

@swift-ci swift-ci merged commit d38198b into swiftlang:master Oct 8, 2016
@graydon graydon deleted the rdar-27982012-poor-diagnostic branch January 18, 2017 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants