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

Hossein <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Whiteboard|                            |reviewed:2024

--- Comment #3 from Hossein <[email protected]> ---
Re-evaluating the EasyHack in 2024

This minor issue is still relevant, as the problem is still there.

If you run this code snippet in LibreOffice BASIC editor, you will see: "No
error" message box, which should not happen. A syntax error is expected.

Option VBASupport 1

Sub Macro1()
    Dim A() As Integer
    Dim b() As Variant
    TestOptArray A, b
End Sub

Function TestOptArray(Optional A() As Integer, Optional B() As Variant)
    MsgBox "No error"
End Sub

If you run the code (without VBASupport) in MS Office VBA IDE, you will get a
syntax error. If you remove "Optional" keywords, it works just fine, and "No
error" message box will be shown.

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

Reply via email to