You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
non-standard error message when incorrectly returning a template string from a function #18309
When incorrectly returning a string (via return $tmpl()) from a function that has a different return type, V gives a compiler error rather than a standard return type error message.
Expected Behavior
I expected to get the following error: error: cannot use `string` as type `int` in return argument
Current Behavior
I get a builder error with the following message: /tmp/v_501/main.3698560348010379656.tmp.c:12450:9: error: returning 'string' (aka 'struct string') from a function with incompatible result type 'int'
Reproduction Steps
You also need to add an file in the same directory named template.md. The contents can be anything.
Activity