feat: add cost fn support

This PR adds const fn support. Not an issue I concretely need, but maybe this helps with maintenance

Now the following is allowed:

const fn one_plus_one() -> u32 {
    1 + 1
}

Resolves #16 (closed)

Merge request reports

Loading