https://bugs.documentfoundation.org/show_bug.cgi?id=98998
Bug ID: 98998
Summary: Variant Parameter Fails on Non-Executed Branch
Product: LibreOffice
Version: 5.1.1.3 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Windows 10. The following fails, but works with the rewrite beneath. It seems
highly undesirable that the code should fail in this way on a non-executed
branch ("If 0 Then ...) but the other pass. Cheers, david
THIS FAILS -
Sub Main()
dim a
a=12
Msgbox f(a)
End Sub
Function f(v)
Dim i
If 0 Then i=v.Count
End Function
BUT THIS WORKS -
[...]
Function f(w)
Dim i,v:v=w
If 0 Then i=v.Count
End Function
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs