We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Logic for SWITCH doesn't work as expected. COND is ok. For option: Create if possible
Example: " Pre -4 r_rotated_inum = switch #( i_inum when 0 then 3 else ( i_inum - 1 ) ). r_rotated_inum = cond #( when i_inum is initial then 3 else ( i_inum - 1 ) ).
" Post <ctrl>-4 r_rotated_inum = switch #( i_inum when 0 then 3 else ( i_inum - 1 ) ). r_rotated_inum = cond #( when i_inum is initial then 3 else ( i_inum - 1 ) ).
The text was updated successfully, but these errors were encountered:
Hi GKaschke,
you're right, there is no reason why this should be kept on one line – thanks for opening this issue, will look into it!
Kind regards, Jörg-Michael
Sorry, something went wrong.
Hello Jörg-Michael, With the option "Create if possible" the SWITCH statement should be kept one line. As like as with COND. Regards, Günter
Hello Günter,
this will be fixed with the next release!
fix AlignCondExpressionsRule for SWITCH one-liners (SAP#156)
a6cec00
fix AlignCondExpressionsRule for SWITCH one-liners (#156)
1f11570
Hi Günter,
thanks again for reporting this! These one-liners should work now with version 1.8.0, which was just released!
jmgrassau
No branches or pull requests
Logic for SWITCH doesn't work as expected. COND is ok. For option: Create if possible
Example:
" Pre -4
r_rotated_inum = switch #( i_inum when 0 then 3 else ( i_inum - 1 ) ).
r_rotated_inum = cond #( when i_inum is initial then 3 else ( i_inum - 1 ) ).
The text was updated successfully, but these errors were encountered: