google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Inline arrays with different types #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.
There are some cases where different types prevent an inline array from being 
created.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4406

3) Provide a little project that reproduces the bug or the crash.
Dim a As New Integer[1]
Dim b As New Float[1]
Print [a, b, 1]

It thinks Object[] is the correct array-type to create, resulting in bad 
conversion (runtime error) from Integer to Object.
The correct array-type would be a Variant[].

Original issue reported on code.google.com by emil.len...@gmail.com on 19 Jan 2012 at 2:23

GoogleCodeExporter commented 9 years ago
It should be fixed in revision #4408.

Original comment by benoit.m...@gmail.com on 19 Jan 2012 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 21 Jan 2012 at 3:21

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 21 Jan 2012 at 3:25