Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
symbol resolution issues when ambiguous call happens in generic proc #11188
Symbol seems to happen when the generic proc is used, not where it's defined.
import b # importing baz causes the error not to trigger #import baz discard "foo".bar()
# the module being the same name as the proc # is a requirement to trigger the error import baz # if this is not generic, error does not occur proc bar*[T](foo: T): bool = foo.baz()
proc baz*(x: string): bool = x.len > 0
nightly devel version: 2019-05-02-devel-c94ab46