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

--- Comment #14 from Mike Kaganski <[email protected]> ---
This is a bug - because the first function
(Do__Error__Optional_argument_is_not_a_variable__Error) should produce a
compile-time error "BASIC syntax error. Variable a already defined." on line
"If False Then Dim anArgument as Boolean". An argument declaration is the same
as Dim; and that should be treated the same as

sub Dim2(arg As Boolean)
  if (arg) Then
    Dim a
  else
    Dim a
  end if
end sub

-- 
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

Reply via email to