New issue
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
Feature: allow non-union assertion types #8077
Commits on Jun 8, 2022
-
qa: add failing test for one-of assertion
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: allow non-single union types in assertions
fixes vimeo#5657 Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Commits on Jun 11, 2022
-
bugfix: only override templated values in case of literals
This will avoid issues with invalid intersection assertions. Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: overriding types based on assertions have to pass more checks
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: only extend existing logic instead of hijacking it
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: only allow narrowing down types in case the old type is not s…
…ingle Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
qa: ensure we use multiple
isset
to verify the existence of `$arg_v……ar_id` Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
qa: use
$assertion_var_id
over$arg_var_id
for better type reflec……tion Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Commits on Jun 12, 2022
-
feature: add
Union#allFloatLiterals
as it was missingSigned-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: tighten the detection of types which narrow down other types
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
qa: add more specific unit test(s) for the
oneOf
detectionSigned-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
qa: use dedicated variable for asserting a specific value
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
feature: add more accurate
equals
checks forTLiteralFloat
, `TLit……eralInt` and `TLiteralString` Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: in case the old type is already more accurate than the new ty…
…pe, do not consider the new type as a replacement Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix: do not extend the type - only narrow down
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
qa: refactor code to avoid too many nesting levels
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
-
bugfix:
single
does not mean that only one single atomic type is st……ored within a union Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Commits on Jun 27, 2022
-
qa: drop unnecessary
ensure_source_equality
checkSigned-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>