https://bugs.documentfoundation.org/show_bug.cgi?id=123263
Bug ID: 123263
Summary: Array with an element type should not be assignable to
a variable of Array with another element type
Product: LibreOffice
Version: 6.3.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
see steps to reproduce
Steps to Reproduce:
1. Open the attached ods file(typetest.ods)
2. Tools->Macros->Organize Macros->LibreOfficeDev Basic
3. Select Main() macro in typetest.ods/Standard/Module/Module1
4. Click "Edit"
5. You will find Main subroutine as given below.
------------------
REM ***** BASIC *****
Option Explicit
Sub Main()
Dim a(1) As String
Dim b(1) As Integer
b = a
End Sub
----------------
6. put a breakpoint to "End Sub" line
7. Enter "b" to the "Watch:", and press Enter
8. press F5
9. check the type of the variable b
Actual Results:
No Error, but...
Type of the variable b is String(0 to 1), which contradicts the variable
declaration.
Expected Results:
Either of
1. No Error, but b should be of type Integer(0 to 1)
2. Conversion Error
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 82fb7f9f90a3ba9d53b3412124e513aa78ddca10
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win;
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-02-05_23:41:03
Locale: ja-JP (ja_JP); UI-Language: en-US
Calc: threaded
--
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