You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm playing around with _MEM and I was passing a _MEM() of a variable to a subroutine. Last night late I actually got a compiler error and got around it by using a temporary variable. I tried to reproduce it today so I could report it and now I get an error message "1st sub argument requires 'TYPE _MEM'" on the call to the subroutine.
QB64 info (please complete the following information):
Version [e.g. 1.5 dev build from git 5a300c7 and also latest e4d987a
Describe the bug
I'm playing around with _MEM and I was passing a _MEM() of a variable to a subroutine. Last night late I actually got a compiler error and got around it by using a temporary variable. I tried to reproduce it today so I could report it and now I get an error message "1st sub argument requires 'TYPE _MEM'" on the call to the subroutine.
QB64 info (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
attached compilerError.bas file shows the error in line 19.
simply, define a sub with a _MEM argument, as in
SUB FRED (m AS _MEM, n$):
and from elsewhere in the program call it, as in
compilerError.bas.txt
FRED _MEM(a), "a"
Expected behavior
I would expect the result of the _MEM() function to be recognized as being of TYPE _MEM and to pass without issue.
The text was updated successfully, but these errors were encountered: