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

template and generic prepass is un-necessary and causes bugs #355

Open
timotheecour opened this issue Oct 26, 2020 · 0 comments
Open

template and generic prepass is un-necessary and causes bugs #355

timotheecour opened this issue Oct 26, 2020 · 0 comments
Labels

Comments

@timotheecour
Copy link
Owner

timotheecour commented Oct 26, 2020

generic prepass is bad

links:

also might be root cause for issues like:

likewise for template pre-pass

causes:

here's another example:

when true: # D20201207T194715
  template fn=
    type Dollar = distinct int
    let a1 = 1
    let a2 = a1.Dollar
  fn()

=> Error: undeclared field: 'Dollar'

TODO

see what should be a proper fix for nim-lang#11167 without generic prepass

@timotheecour timotheecour changed the title generic prepass is bad template and generic prepass is bad Dec 8, 2020
@timotheecour timotheecour changed the title template and generic prepass is bad template and generic prepass is un-necessary and causes bugs Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant