Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nim doc renders char as int when inside a const object #7039

Open
GULPF opened this issue Jan 7, 2018 · 5 comments
Open

nim doc renders char as int when inside a const object #7039

GULPF opened this issue Jan 7, 2018 · 5 comments
Labels
Documentation Generation Related to documentation generation (but not content).

Comments

@GULPF
Copy link
Member

GULPF commented Jan 7, 2018

Using nim doc on this file:

type O = object
    foo: char

const Z* = O(foo: 'c')

renders as Z = (foo: 99).
With nim doc0 it is rendered correctly.

@GULPF GULPF added the Documentation Generation Related to documentation generation (but not content). label Oct 23, 2018
@krux02 krux02 removed the Tools label Oct 28, 2018
@nc-x
Copy link
Contributor

nc-x commented Jan 21, 2019

Again because semConst removes all information from the const and after it evaluates the value 'c', all that is left is the 99.

@stale
Copy link

stale bot commented Aug 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions.

@stale stale bot added the stale Staled PR/issues; remove the label after fixing them label Aug 4, 2020
@narimiran narimiran removed the stale Staled PR/issues; remove the label after fixing them label Sep 17, 2020
@timotheecour
Copy link
Member

maybe something like #14439 could help

@ringabout
Copy link
Member

Related:
#11810

@timotheecour
Copy link
Member

msgs.sourceLine could be an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Generation Related to documentation generation (but not content).
Projects
None yet
Development

No branches or pull requests

7 participants