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
The compiler should infer types correctly and not push type-inference to the backend (C).
include "math.h"; function exp(v:(Float64,Float64)):(Float64,Float64) { var r = expf(v[0]); var d = 0.0; return (r,d); }
gives a compile error from the gcc:
Error: build/lib/kit_test0.c: In Funktion »test0__exp«: build/lib/kit_test0.c:19:12: Fehler: unverträgliche Typen bei Rückgabe von Typ »struct tuple2bf0b99cc56f6aa69d896315«, aber »struct tuplee7731a893109b41a186a62ef« wurde erwartet 19 | return (struct tuple2bf0b99cc56f6aa69d896315) {.__slot0 = r, .__slot1 = d}; | ^
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The compiler should infer types correctly and not push type-inference to the backend (C).
If this is a code issue, provide a minimal code example:
gives a compile error from the gcc:
The text was updated successfully, but these errors were encountered: