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

            Bug ID: 143707
           Summary: Macro optional parameter is incorrectly initialized to
                    the default integer value with Option VBASupport 1
           Product: LibreOffice
           Version: 7.1.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Macro optional parameter is incorrectly initialized to the default integer
value with Option VBASupport 1

Steps to Reproduce:
Run Macro Test.

Option Explicit 
Option VbaSupport 1

Sub Mysub(Optional ByVal arg1 As Variant=1) 
  Msgbox arg1
End Sub

Sub Test
  Mysub 
End Sub  


Actual Results:
Shows 1%

Expected Results:
MUST show 1


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to