Skip to content

Conversation

@timotheecour
Copy link
Member

@timotheecour timotheecour commented Jun 14, 2021

followup #17777: declaredloc field error msgs now work with generics

addresses all the points mentioned in future work of #17777 (comment)

someVar.badField now gives errors like this:

main.nim(46, 19) Error: undeclared field: 'badField' for type foo.Bar [type declared in tundeclared_field.nim(39, 8)]

instead of:

main.nim(46, 19) Error: undeclared field: 'badField'

when typeof(someVar) is generic
ditto with other cases (see tests)

@timotheecour timotheecour force-pushed the pr_follow_17777_errormsg_field_generic branch from 81239f9 to 500d50d Compare June 14, 2021 04:38
@timotheecour timotheecour marked this pull request as ready for review June 14, 2021 06:08
@timotheecour timotheecour added the Ready For Review (please take another look): ready for next review round label Jun 14, 2021
@Araq Araq merged commit 065243d into nim-lang:devel Jun 14, 2021
@timotheecour timotheecour deleted the pr_follow_17777_errormsg_field_generic branch June 14, 2021 06:35
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
…enerics (nim-lang#18259)

* followup nim-lang#17777: declaredloc field error msgs now work with generics

* fix tests

* cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready For Review (please take another look): ready for next review round

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants