<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 - Passing a constant to a Basic function changes variant parameter type to integer"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133913">133913</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Passing a constant to a Basic function changes variant parameter type to integer
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0.0.0.beta1+
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tomaspartl@centrum.cz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=161901" name="attach_161901" title="A test case for broken parameter-type inference">attachment 161901</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=161901&action=edit" title="A test case for broken parameter-type inference">[details]</a></span>
A test case for broken parameter-type inference

When a Basic function has a parameter without a specified type, its type is
automatically set to variant. However, passing an integer constant as the value
of such parameter makes its type integer rather than variant/integer.

This is a change in LO 7.0 beta1 compared to LO 6.4 and I'm pretty sure its a
bug.
I'm reporting it, because it actually broke some macros I use in production.

A document with a test-case macro is attached.

This bug may be related to
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Empty parameter of type variant does no longer work in sub"
   href="show_bug.cgi?id=132563">https://bugs.documentfoundation.org/show_bug.cgi?id=132563</a> but I don't think
it's the exact same thing.</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>