https://bugs.documentfoundation.org/show_bug.cgi?id=150319
Bug ID: 150319
Summary: Calling a non-existing Function should result in error
Product: LibreOffice
Version: 7.3.5.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
In Basic, suppose you have a module that contains only the following content:
Sub TestIfFunctionExists
result = ThisDoesNotExist()
End Sub
If you run the sub above, no error will occur and "result" will have the
"Empty" value after the sub finishes.
However, since the function ThisDoesNotExist() does not exist, an error should
occur.
The weirdest thing is that running the following Sub will result in an error.
Sub TestIfSubExists
ThisDoesNotExist()
End Sub
Notice that now ThisDoesNotExist() is being called as a Sub instead of a
Function and an error occurs, which is expected.
However, I would expect errors in both cases.
System info
Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded
Also in
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 641d92a73e5b3d0e062e16ed4b42236e1a4796a5
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.