https://bugs.documentfoundation.org/show_bug.cgi?id=151503

--- Comment #1 from Mike Kaganski <[email protected]> ---
(In reply to Lionel Elie Mamane from comment #0)
> Compare with:
> 
>   sub tstOpt2(optional foo as boolean)
>       if foo then
>          msgbox "yes"
>       else
>          msgbox "no"
>       end if
>   end sub
> 
> Which shows "yes" in both LibO 7.2 and LibO 7.4

I would consider this a bug. It must give the "not optional/missing" error.

In Basic, there's no boolean short circuiting (unfortunately), so accessing a
missing argument "after" checking IsMissing in the same expression is not
valid.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to