Closed Luna-Klatzer closed 1 month ago
Attention: Patch coverage is 75.09728%
with 128 lines
in your changes missing coverage. Please review.
Project coverage is 84.02%. Comparing base (
ebe956a
) to head (d138f5e
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What type of change does this PR perform?
Summary
New development release
0.12.0-alpha.1
, which adds various new features, such as dot-notation syntax, support for basic classes, support for index-based arrays, as well as internal type structures required for future updates.Detailed Changelog
Not present for website/docs changes
Added
Func<T..., R>
type and function type initializers. (#584)T...
, which allows multiple arguments to be passed to a single parameter inside a generic type specifier.NaN
, which represents theNaN
value in JavaScript (Not a Number). (#671)MismatchingArgCountBetweenFuncTypesError
, which is thrown when the amount of arguments in a function type does not match the number of arguments in the function type it is compared to.GenericCanOnlyHaveOneSpreadError
, which is thrown when a generic type has more than one spread argument. This is for now an internal-only error that should not be thrown in normal circumstances.TypeNotAssignableToUnionError
, which is thrown when a type is not assignable to a union type.ValueTypeNotIndexableWithGivenAccessor
, which is thrown when a value type is not indexable with the given accessor.PropertyDoesNotExistError
, which is thrown when a property does not exist on a type.BuiltInReference
, which replaces the now removed typeReference
in theKipperProgramContext
for reference tracking of built-in types.BuiltInFunction.funcType
, which returns a function type for the built-in function.FunctionDeclarationTypeSemantics.type
, which returns the type of the function declaration i.e. the function type.LambdaPrimaryExpressionTypeSemantics.type
, which returns the type of the lambda primary expression i.e. the function type.FunctionCallExpressionTypeSemantics.funcOrExp
, which returns the function or expression that is called. This always stores some sort of value that extendsBuiltInTypeFunc
.KipperError
, which serves as the base forTypeError
andIndexError
.Changed
print
fromstr
toany
.len
fromstr
tostr | Array<any>
. (#667)compiler/.../expressions/arithmetic
toarithmetic-expression
.Fixed
Func
instead of the appropriate filled-upFunc<T..., R>
type. This now enables proper type-checking for function references.run
not properly reporting internal or unexpected errors, as they were already prettified in the internally called up commandcompile
.Removed
Reference
as it is no longer needed and has been replaced byKipperReferenceable
.FunctionCallExpressionTypeSemantics.func
, which is now has been replaced byfuncOrExp
.Does this PR create new warnings?
None.
Linked issues or PRs