We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# importme.nim type Foo = int32 proc baz*[T](y :int) = echo y.Foo
# main.nim import importme baz[float](1'i8)
baz[float](1'i8) can be called in importme just fine, but not in main, giving the error:
baz[float](1'i8)
importme
main
Error: undeclared field: 'Foo' for type system.int [declared in c:\dev\fork\Nim\lib\system\basic_types.nim(2, 3)]
Using the normal call syntax allows the code to compile fine, however:
proc baz*[T](y :int) = echo Foo(y)
The text was updated successfully, but these errors were encountered:
This issue is also generic-specific, removing the generic param permits compilation.
Sorry, something went wrong.
pretty related: #14819
fix nim-lang#14254
9a1946b
ed88b44
fix #14254 (#21837)
641e34b
* fix #14254 * use temporary PR branch for neo * fix url
fix nim-lang#14254 (nim-lang#21837)
1eee38a
* fix nim-lang#14254 * use temporary PR branch for neo * fix url
Successfully merging a pull request may close this issue.
baz[float](1'i8)
can be called inimportme
just fine, but not inmain
, giving the error:Using the normal call syntax allows the code to compile fine, however:
The text was updated successfully, but these errors were encountered: