<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - BASIC: Declaring an array parameter as optional should not be possible with option VBASupport"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131818">131818</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>BASIC: Declaring an array parameter as optional should not be possible with option VBASupport
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Inherited From OOo
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andreas.heinisch@yahoo.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>