mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-05 22:50:23 +00:00
Fix error with stray As
in Sub parameters
Things like this used to be treated as valid: ``` Sub foo(bar As) End Sub ```
This commit is contained in:
parent
8437a66f6d
commit
03982022dc
|
@ -2549,6 +2549,7 @@ DO
|
|||
argnelereq = 0
|
||||
|
||||
IF symbol2$ <> "" AND t2$ <> "" THEN a$ = "Syntax error - check parameter types": GOTO errmes
|
||||
IF t2$ = "" AND e$ = "AS" THEN a$ = "Expected AS type": GOTO errmes
|
||||
IF t2$ = "" THEN t2$ = symbol2$
|
||||
IF t2$ = "" THEN
|
||||
IF LEFT$(n2$, 1) = "_" THEN v = 27 ELSE v = ASC(UCASE$(n2$)) - 64
|
||||
|
|
Loading…
Reference in a new issue