diff options
author | Olivier De Cannière <[email protected]> | 2023-11-24 18:13:36 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2024-02-16 20:31:30 +0100 |
commit | 2b336217b0d8c7406e53624f3f0d5b1285f99144 (patch) | |
tree | f018dec08def30c796b7c702705ca7c8c1c4d779 /src/quick/items | |
parent | ac382bd9aaff68be786c5e8b1ded7d91f3369887 (diff) |
Compiler: Add tests for the nullish coalescing operator ??
Now that initial support for optional chaining was added, it would be
good to add tests ensuring the nullish coalescing works as expected. Add
some tests to enshrine the behavior.
The compiler is currently not smart enough to detect that
"(Anything as int) ?? 1" will always return an int. It returns an
optional int instead. Created QTBUG-119437.
Task-number: QTBUG-119437
Change-Id: If2d72b0c29e5844cd962dbf92406bfa9181a1bc7
Reviewed-by: Olivier De Cannière <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/quick/items')
0 files changed, 0 insertions, 0 deletions