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
I don't know if method call syntax should work with templates, but right now the error is not very clear:
type Length = distinct float const meter = Length(1.0) template metricPrefix(unit: expr, prefix: expr, factor: expr): stmt = const `prefix unit`* {.inject.} = factor # Doesn't work meter.metricPrefix(milli, 1e-3) # Works #metricPrefix(meter, milli, 1e-3)
minimal.nim(8, 5) Info: instantiation from here minimal.nim(5, 8) Error: identifier expected, but found '`milli 1.0000000000000000e+00`'
The text was updated successfully, but these errors were encountered:
ad71fb4
No branches or pull requests
I don't know if method call syntax should work with templates, but right now the error is not very clear:
The text was updated successfully, but these errors were encountered: