mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 06:00:23 +00:00
Properly warns user when a non-_MEM var is used with _MEM functions.
Closes #47
This commit is contained in:
parent
bed68767e6
commit
f6c068ba19
|
@ -17525,6 +17525,11 @@ FUNCTION evaluatetotyp$ (a2$, targettyp AS LONG)
|
|||
Give_Error "Illegal string-number conversion": EXIT FUNCTION
|
||||
END IF
|
||||
|
||||
'_MEM?
|
||||
IF (sourcetyp AND (ISUDT + (1))) <> (targettyp AND (ISUDT + (1))) THEN
|
||||
Give_Error "Illegal data type conversion (function returns _MEM type)": EXIT FUNCTION
|
||||
END IF
|
||||
|
||||
IF (sourcetyp AND ISSTRING) THEN
|
||||
evaluatetotyp$ = e$
|
||||
IF (sourcetyp AND ISREFERENCE) THEN
|
||||
|
|
Loading…
Reference in a new issue