Project

General

Profile

Bug #879

Gosub / Goto sometimes fails when numbered label referenced is the result of a calaulation starting with a number

Added by Brian Flanagan over 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Target version:
Start date:
12/13/2021
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Related to bug #399 (which has been resolved).

For example:

X=10
Gosub 10*X
Print "no error"
End

100 Print "test sub"
Return

The above code fails to transpile with t label not defined at line 2.

If, however, I start the equation with X, it works:

X=10
Gosub X*10
Print "no error"
End

100 Print "test sub"
Return

Also available in: Atom PDF