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
Symbol seems to happen when the generic proc is used, not where it's defined.
Example
a.nim
import b
# importing baz causes the error not to trigger#import bazdiscard"foo".bar()
b.nim
# the module being the same name as the proc# is a requirement to trigger the errorimport baz
# if this is not generic, error does not occurprocbar*[T](foo: T): bool= foo.baz()
baz.nim
procbaz*(x: string): bool= x.len >0
Current Output
a.nim(4, 14) template/generic instantiation of `bar` from here
b.nim(6, 33) Error: attempting to call undeclared routine: 'baz'
Expected Output
Possible Solution
Additional Information
nightly devel version: 2019-05-02-devel-c94ab46
$ nim -v
Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-05-02
Copyright (c) 2006-2019 by Andreas Rumpf
active boot switches: -d:release -d:nativeStackTrace
The text was updated successfully, but these errors were encountered:
Symbol seems to happen when the generic proc is used, not where it's defined.
Example
a.nim
b.nim
baz.nim
Current Output
Expected Output
Possible Solution
Additional Information
nightly devel version: 2019-05-02-devel-c94ab46
The text was updated successfully, but these errors were encountered: