-
-
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
Nim cannot detect proper overload without importing the used generic module in wrapper module #22543
Labels
Comments
!nim c import temp1
bug(1, @[1]) import std/lists
proc bug*[L](v: L; a: seq[int]) = discard toDoublyLinkedList(a) |
@juancarlospaco (collaborator) devel 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) stable 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 2.0.0 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 1.6.0 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 1.4.0 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 1.2.0 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 1.0.0 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) 0.20.2 👎 FAILOutput
Stats
IRCompiled filesize0 bytes (0 bytes)
ASTnnkStmtList.newTree(
nnkImportStmt.newTree(
newIdentNode("temp1")
),
nnkCall.newTree(
newIdentNode("bug"),
newLit(1),
nnkPrefix.newTree(
newIdentNode("@"),
nnkBracket.newTree(
newLit(1)
)
)
)
) Stats
🤖 Bug found in |
Use a |
I think the issue is that |
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 28, 2023
Araq
pushed a commit
that referenced
this issue
Aug 28, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 5, 2023
narimiran
pushed a commit
that referenced
this issue
Sep 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
compile
wrapper.nim
.wrapper.nim
inside.nim
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2023-08-23
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 6b04d03
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
seems like the generic call is tied to the caller module?
The text was updated successfully, but these errors were encountered: