View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038305 | pas2js | transpiler | public | 2021-01-04 13:46 | 2021-01-10 23:16 |
Reporter | henrique | Assigned To | Mattias Gaertner | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Pas2Js | OS | Windows | ||
Summary | 0038305: Error compiling generics | ||||
Description | When I try to create a dictionary that has the value being a procedure gives the build error "Error: procedural type expected, but functional type found". I've attach a project with the error. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
Attached Files |
|
|
|
|
Error is on SomeProcVar:=SomeFuncReturningAProcVar; Without generics this is forbidden in Delphi. You must add the (). But with generics Delphi allows it. So, either Delphi has a bug not checking the actual type of the template, or I'm clueless what the rule is. |
|
I fixed the TDictionary code. IMO it is better to keep pas2js consistent here. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-04 13:46 | henrique | New Issue | |
2021-01-04 13:46 | henrique | File Added: Error.zip | |
2021-01-05 12:50 | Mattias Gaertner | Assigned To | => Mattias Gaertner |
2021-01-05 12:50 | Mattias Gaertner | Status | new => assigned |
2021-01-10 23:11 | Mattias Gaertner | Note Added: 0128255 | |
2021-01-10 23:16 | Mattias Gaertner | Status | assigned => resolved |
2021-01-10 23:16 | Mattias Gaertner | Resolution | open => fixed |
2021-01-10 23:16 | Mattias Gaertner | Note Added: 0128256 |