-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: internal error: getTypeDescAux(tyFromExpr) when using auto + arc, works with refc #20588
Comments
Compiles with func hakunaMatata[N, D](n: N, d: D): auto =
if d.float > 0: (n/d) else: 0.0
echo hakunaMatata(42.0, 0.42).type # float
echo hakunaMatata(42f32, 3f32).type # float32 |
where the |
I would assume the symbol edit: I mean that's what I would understand the syntax to imply. |
I debug in serveral places, in the end I start from proc semExprBranch(c: PContext, n: PNode; flags: TExprFlags = {}; expectedType: PType = nil): PNode =
result = semExpr(c, n, flags, expectedType)
echo result.typ outputs |
What happened?
Nim Version
Current Standard Output Logs
Expected Standard Output Logs
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: