Skip to content

[REG2.058] Issue 11078 - Diagnostic for wrong RHS in property assign of a property group should improve#3014

Merged
WalterBright merged 1 commit intodlang:masterfrom
9rnsr:fix11078
Dec 23, 2013
Merged

[REG2.058] Issue 11078 - Diagnostic for wrong RHS in property assign of a property group should improve#3014
WalterBright merged 1 commit intodlang:masterfrom
9rnsr:fix11078

Conversation

@9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Dec 23, 2013

Copy link

Choose a reason for hiding this comment

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

This diagnostic is still wrong. It should reference the setter, meaning it should say:

Error: function diag11078.S1.value(int) is not callable using argument types (double)

That way you can tell at a glance that you're trying to pass a double to a function expecting an int.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This message is same as 2.057, so regression issue is fixed by this change.

To show more better diagnostic, we need more work.

Copy link

Choose a reason for hiding this comment

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

Hmm ok.

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Dec 23, 2013
[REG2.058] Issue 11078 - Diagnostic for wrong RHS in property assign of a property group should improve
@WalterBright WalterBright merged commit c9366dd into dlang:master Dec 23, 2013
@9rnsr 9rnsr deleted the fix11078 branch December 24, 2013 00:02
WalterBright added a commit that referenced this pull request Dec 31, 2013
[REG2.058] Issue 11078 - Diagnostic for wrong RHS in property assign of a property group should improve
@WalterBright WalterBright mentioned this pull request Feb 21, 2015
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.

2 participants