Closed kevinbarabash closed 4 months ago
Attention: Patch coverage is 91.75824%
with 15 lines
in your changes missing coverage. Please review.
Project coverage is 84.79%. Comparing base (
3118ee1
) to head (6aef0fc
).
Files | Patch % | Lines |
---|---|---|
src/Escalier.TypeChecker/Infer.fs | 89.51% | 15 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In particular, enum variants can be wrap either a tuple or an object or be empty. The variants are inferred as:
The
__TAG__
is the unique symbol assigned toMyEnum.MyVariant
.The reason for odd variant types is that we want to support both tuple and object payloads while also support interop with TypeScript tagged unions in the future.