Skip to content

Conversation

@DanielRosenwasser
Copy link
Member

This pull request aims to redirect the error message span for an excess property error from the usual target of the assignment to the invalid property itself. I believe this is a positive change in that the resulting error span is actually helpful for users.

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose I have some reservations about this, but what would fix this is to change the topmost message to "The type argument for type parameter 'T' cannot be inferred from the usage _of 'foo'_."

@mhegazy
Copy link
Contributor

mhegazy commented Aug 31, 2015

👍

1 similar comment
@yuit
Copy link
Contributor

yuit commented Aug 31, 2015

👍

@danquirk
Copy link
Member

danquirk commented Sep 2, 2015

Awesome 👍

DanielRosenwasser added a commit that referenced this pull request Sep 3, 2015
…ExcessProperties

Better error spans for object literal excess properties
@DanielRosenwasser DanielRosenwasser merged commit fafbec6 into release-1.6 Sep 3, 2015
@mhegazy mhegazy deleted the bettErrErrorsForObjectLiteralExcessProperties branch September 3, 2015 17:27
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants