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

workaround for Nim 2.0 issue with the template #68

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

etan-status
Copy link
Contributor

In Nim 2.0, getting

Error: type mismatch
Expression: `[]`(x, 0 + i`gensym1615)
  [1] x: array[0..63, Eth2Digest]
  [2] 0 + i`gensym1615: int

if chunkedHashTreeRoot[T: not BasicType] is a template. Aligning it to func, same as done for the chunkedHashTreeRoot[T: BasicType, fixes this.

In Nim 2.0, getting

```
Error: type mismatch
Expression: `[]`(x, 0 + i`gensym1615)
  [1] x: array[0..63, Eth2Digest]
  [2] 0 + i`gensym1615: int
```

if `chunkedHashTreeRoot[T: not BasicType]` is a `template`. Aligning it
to `func`, same as done for the `chunkedHashTreeRoot[T: BasicType`,
fixes this.
@etan-status etan-status enabled auto-merge (squash) September 5, 2023 21:44
@etan-status etan-status merged commit 5342835 into master Sep 5, 2023
@etan-status etan-status deleted the dev/etan/cc-chunkedfunc branch September 5, 2023 23:53
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.

1 participant