[Libreoffice-bugs] [Bug 133913] New: Passing a constant to a Basic function changes variant parameter type to integer
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 11 20:45:15 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=133913
Bug ID: 133913
Summary: Passing a constant to a Basic function changes variant
parameter type to integer
Product: LibreOffice
Version: 7.0.0.0.beta1+
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: tomaspartl at centrum.cz
Created attachment 161901
--> https://bugs.documentfoundation.org/attachment.cgi?id=161901&action=edit
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
https://bugs.documentfoundation.org/show_bug.cgi?id=132563 but I don't think
it's the exact same thing.
--
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/20200611/cf48bf51/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list