You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type
A =object
x: int
B*[T] =object
b: T
AConcept*=conceptprocimplementation(s: varSelf, p1: B[int])
procimplementation*(r: var A, p1: B[int])=discardprocaccept*(r: varAConcept)=discardvar a =A()
a.accept()
changing the typedef section to this and it will work:
type
A =object
x: intAConcept*=conceptprocimplementation(s: varSelf, p1: B[int])
B*[T] =object
b: T
Nim Version
Nim Compiler Version 2.2.1 [Linux: amd64]
Compiled at 2024-11-15
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 726195d
active boot switches: -d:release
Current Output
Error: type mismatch
Expression: accept(a)
[1] a: A
Expected one of (first mismatch at [position]):
[1] proc accept(r: var AConcept)
Expected Output
No response
Known Workarounds
No response
Additional Information
I had something similar happen with imports too. That scenario had the concept matching encounter tyGenericBody but I'm not sure if this is the same
The text was updated successfully, but these errors were encountered:
Description
changing the typedef section to this and it will work:
Nim Version
Nim Compiler Version 2.2.1 [Linux: amd64]
Compiled at 2024-11-15
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 726195d
active boot switches: -d:release
Current Output
Expected Output
No response
Known Workarounds
No response
Additional Information
I had something similar happen with imports too. That scenario had the concept matching encounter
tyGenericBody
but I'm not sure if this is the sameThe text was updated successfully, but these errors were encountered: