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

Consistent nimsuggest crash on generics in first class functions #22137

Closed
omentic opened this issue Jun 21, 2023 · 1 comment
Closed

Consistent nimsuggest crash on generics in first class functions #22137

omentic opened this issue Jun 21, 2023 · 1 comment

Comments

@omentic
Copy link
Contributor

omentic commented Jun 21, 2023

Description

Nimsuggest consistently crashes on the following code (minimal reproducible version)

import std/sugar

proc handle[T](op: (T, T) -> T) =
  discard

func named[T](a, b: T): T = typeof(a)(a == b)

handle(named)

Nim Version

Nim Compiler Version 1.9.5 [Linux: amd64]
Compiled at 2023-06-20
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

No response

@ringabout
Copy link
Member

for the record, nim check gives

Error: internal error: C:\Users\blue\Documents\GitHub\Nim\compiler\seminst.nim(355, 3)       
Traceback (most recent call last)

Araq added a commit that referenced this issue Jun 27, 2023
@Araq Araq closed this as completed in ce0909f Jun 27, 2023
bung87 pushed a commit to bung87/Nim that referenced this issue Jul 29, 2023
narimiran pushed a commit that referenced this issue Sep 11, 2023
(cherry picked from commit ce0909f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants