[Libreoffice-bugs] [Bug 131818] New: BASIC: Declaring an array parameter as optional should not be possible with option VBASupport

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 2 09:40:50 UTC 2020


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

            Bug ID: 131818
           Summary: BASIC: Declaring an array parameter as optional should
                    not be possible with option VBASupport
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: andreas.heinisch at yahoo.de

Description:
In LO BasicBasic with option Compatible/VBASupport it is possible to declare an
array parameter as optional:

Function TestOptArray(Optional A() As Integer, Optional B() As Variant)

However, in MSO it is not possible to declare an array parameter as optional.
The above code snippet leads to a syntax error in MSO, whereas the following
works:

Function TestOptArray(A() As Integer, B() As Variant)

At least with option VBASupport LO should throw a syntax error.


Actual Results:


Expected Results:



Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200402/c2ba87f7/attachment.htm>


More information about the Libreoffice-bugs mailing list