specializing generic types inside of generic method couse compiler error
Original Reporter info from Mantis: Bergmann89
-
Reporter name:
Original Reporter info from Mantis: Bergmann89
- Reporter name:
Description:
Specializing generic types inside of generic methods cause a compiler error: This type cannot be a generic.
This seems to be old code and might be removed, because we now have generic methods?
Steps to reproduce:
Compile attached code.
Additional information:
Stack Trace:
#0 PASS_TYPECHECK(0x7ce45880) at nmem.pas:210
#1 TYPECHECKPASS_INTERNAL(0x7ce45880, false) at pass_1.pas:80
#2 DO_TYPECHECKPASS_CHANGED(0x7ce45880, false) at pass_1.pas:123
#3 POSTFIXOPERATORS(0x7ce45880, true, false) at pexpr.pas:1976
#4 FACTOR(false, [EF_ACCEPT_EQUAL]) at pexpr.pas:3369
#5 SUB_EXPR(OPPOWER, [EF_ACCEPT_EQUAL], 0x0) at pexpr.pas:4087
#6 SUB_EXPR(OPMULTIPLY, [EF_ACCEPT_EQUAL], 0x0) at pexpr.pas:4092
#7 SUB_EXPR(OPADDITION, [EF_ACCEPT_EQUAL], 0x0) at pexpr.pas:4092
#8 SUB_EXPR(OPCOMPARE, [EF_ACCEPT_EQUAL], 0x0) at pexpr.pas:4092
#9 COMP_EXPR([EF_ACCEPT_EQUAL]) at pexpr.pas:4307
#10 _WITH_STATEMENT at pstatmnt.pas:607
#11 WITH_STATEMENT at pstatmnt.pas:818
#12 STATEMENT at pstatmnt.pas:1196
#13 STATEMENT_BLOCK(_BEGIN) at pstatmnt.pas:1362
#14 BLOCK(false) at psub.pas:375
#15 PARSE_BODY(0x7d11bdf0) at psub.pas:1869
#16 READ_PROC_BODY(0x7d11bc10, 0x7e0727f0) at psub.pas:2029
#17 READ_PROC(false, 0x0, true) at psub.pas:2203
#18 READ_DECLARATIONS(false) at psub.pas:2387
#19 BLOCK(false) at psub.pas:319
#20 PARSE_BODY(0x7d11bc10) at psub.pas:1869
#21 PROC_PROGRAM(false) at pmodules.pas:2094
#22 COMPILE('C:\dev\test\project1.lpr') at parser.pas:391
#23 COMPILE(0x0) at compiler.pas:272
#24 main at pp.pas:232