Page 1 of 1

Error at line 12: '[' is not a valid argument type

Posted: Thu Jan 22, 2009 3:16 am
by Mistrel
The following source produces this error when compiled with Tailbite:

Code: Select all

Declare Proc(a)
Declare Proc2(a)
Declare ProcLoader(a)

ProcedureDLL Proc(a)
	ProcedureReturn ProcLoader(a)
EndProcedure

ProcedureDLL Proc2(a)
EndProcedure

Procedure ProcLoader(a)
	ProcedureReturn Proc2(a)
EndProcedure

Code: Select all

---------------------------
TB_Test.desc
---------------------------
Error at line 12: '[' is not a valid argument type
---------------------------
OK   
---------------------------
TB_Test.desc:

Code: Select all

ASM
;
1
KERNEL32
;
LIB
;
0
;
Some.chm
;
Proc, Long, [ (a)
Long | StdCall
;
TB_Test_Init 
InitFunction | StdCall
;

Posted: Thu Jan 22, 2009 6:54 am
by ts-soft
Rename Proc2(a)
This Syntax is reserved for Proc(a) with optional parameters

Posted: Thu Jan 22, 2009 10:56 am
by Mistrel
My mistake. :oops:

Posted: Thu Jan 22, 2009 12:25 pm
by ABBKlaus
TailBite is not bulletproof :shock: