SciNim / Unchained

A fully type safe, compile time only units library.
https://scinim.github.io/Unchained
109 stars 0 forks source link

Fix type information loss with `const` variable, fixes #5 #25

Closed Vindaar closed 2 years ago

Vindaar commented 2 years ago

Finally fixes the underlying issue of #5. The problem was simply that our quick check if the input is UnitLess was flawed for const variables, as their node kind is still an nnkFloatLit.