generic method in interface
Original Reporter info from Mantis: mr-highball
-
Reporter name: Highball
Original Reporter info from Mantis: mr-highball
- Reporter name: Highball
Description:
the same code compiles in mode delphi using fpc compiler, but when compiling using pas2js I get the following error:
Project1.pas(12,19) Error: interface methods cannot have type parameters
just wondering if this is something "can" be addressed or if there is a limitation for browser?
Steps to reproduce:
define an interface with a generic method as such, and try to compile
IMyTestInterface = interface
['{9E1D0DEE-F2E5-4171-A617-EB923B6EC7EF}']
procedure Test<T>;
end;
Additional information:
using trunk pas2js pulled 10/8/2020
Mantis conversion info:
- Mantis ID: 37895