Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

Implemented `Func<T..., R>` generic function type and auto-function type inference #673

Closed Luna-Klatzer closed 1 month ago

Luna-Klatzer commented 1 month ago

What type of change does this PR perform?

Summary

Implemented new Func<T..., R type for lambdas and function references as well as auto-type inference.

Closes #584

Detailed Changelog

Not present for website/docs changes

Added

Does this PR create new warnings?

None.

Linked issues or PRs

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 88.42105% with 11 lines in your changes missing coverage. Please review.

Project coverage is 83.94%. Comparing base (0100595) to head (71e0fa4).

Files Patch % Lines
...core/src/compiler/semantics/types/built-in/func.ts 87.50% 3 Missing :warning:
...er-expression/generic-type-specifier-expression.ts 92.00% 2 Missing :warning:
...iler/semantics/types/base/generic-built-in-type.ts 60.00% 2 Missing :warning:
kipper/target-ts/src/code-generator.ts 86.66% 1 Missing and 1 partial :warning:
...re/src/compiler/semantics/analyser/type-checker.ts 83.33% 0 Missing and 1 partial :warning:
...rc/compiler/semantics/types/base/processed-type.ts 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-next #673 +/- ## ============================================ + Coverage 83.15% 83.94% +0.79% ============================================ Files 265 262 -3 Lines 4463 4316 -147 Branches 485 470 -15 ============================================ - Hits 3711 3623 -88 + Misses 602 555 -47 + Partials 150 138 -12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.