-
-
Notifications
You must be signed in to change notification settings - Fork 43
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 2.0.x devel: static generic typeclass type mismatch #373
Comments
From https://github.com/mratsim/constantine/actions/runs/8629836320/job/23654839440 in PR #368 v2.0.4 with git hash b47747d31844c6bd9af4322efe55e24fefea544c was working fine |
Reproduced locally, the compiler loses the concrete type here: Some possibly interesting points:
|
Fixed upstream in nim-lang/Nim#23852 |
From #370 (comment)
Overview
Command:
It seems like there is a regression in Nim 2.0.x devel branch that breaks type-checking:
No issue in Nim 2.0.2 or 2.04
Investigation
Error
The input should match:
constantine/constantine/math/extension_fields/towers.nim
Lines 124 to 129 in 976c8bb
and ExtensionField is just a generic typeclass
constantine/constantine/math/extension_fields/towers.nim
Lines 34 to 48 in 976c8bb
The only potential buggy part is that it's called in a compile-time context:
constantine/constantine/math/extension_fields/towers.nim
Lines 1442 to 1447 in 976c8bb
The text was updated successfully, but these errors were encountered: