-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Describe the bug
When attempting to use an array within a method in a UDT, TB5078 is raised.
To Reproduce
Module MainModule
Type MyType
dummy&
Function F() As Single()
Dim result(1 To 6) As Single
result(2) = 1 ' <---- TB5078 Error occurred in binding to symbol 'result'
Return result ' <---- TB5078 Error occurred in binding to symbol 'result'
End Function
Function G() As Single()
Dim result(1 To 6) As Single
result(2) = 1 ' <---- TB5078 Error occurred in binding to symbol 'result'
G = result ' <---- TB5078 Error occurred in binding to symbol 'result'
End Function
End Type
Function F() As Single()
Dim result(1 To 6) As Single
result(2) = 1 ' OK
Return result ' OK
End Function
Function G() As Single()
Dim result(1 To 6) As Single
result(2) = 1 ' OK
G = result ' OK
End Function
End ModuleExpected behavior
No error occurrs.
Desktop (please complete the following information):
- twinBASIC Beta 973 and 964
Additional context
I've run into that when working on the GdiPlus package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels