Forwarding does not work for generics, | produces an implicit generic #3055

Closed
FedeOmoto opened this Issue Jul 3, 2015 · 0 comments

Projects

None yet

2 participants

@FedeOmoto
Contributor

The following code fails to compile:

proc b(t: int | string)
proc a(t: int) = b(t)
proc b(t: int | string) = echo "b()"
a(1)

Produces this error: implementation of 'b.b(t: int)' expected

@Araq: thanks for giving the proper title to this issue 😉

@Araq Araq added a commit that closed this issue Jul 8, 2016
@Araq Araq fixes #3055 089c317
@Araq Araq closed this in 089c317 Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment