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

--- Comment #2 from Andreas Heinisch <andreas.heini...@yahoo.de> ---
Already in Version 4.0.0.1 (Build ID: 527dba6f6e0cfbbc71bd6e7b88a52699bb48799)

Not so easy to solve on my side.

  Sub Foo(Optional x As Double, Optional y As Double)
    MsgBox ismissing(x) & " " & ismissing(y)
  End Sub

The parser initializes the variable x as double and sets it as optional.

  Sub Bar
    Foo(y:=10)
  End Sub

Here it initializes the variable y to integer with a the value 10.

However, it does not generate a StepEMPTY for StepPARAM since there is no COMMA
token for the function Foo. Maybe there could be some logic scanning the
parameter list for function Foo and the actual call of the function in [1].
Then, there could be an additional StepEMPTY for the parameter x in this case.
Maybe there is another approach, but currently, I could not find any satisfying
solution for me.

[1]
https://opengrok.libreoffice.org/xref/core/basic/source/comp/exprtree.cxx?r=a5c1a645#955

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

Reply via email to