pas2js adds superfluous and wrong line for anonymous array
Original Reporter info from Mantis: Mattias @lazidealist
-
Reporter name: Mattias Gaertner
Original Reporter info from Mantis: Mattias @lazidealist
- Reporter name: Mattias Gaertner
Description:
When compiling a class containing a field with an anonymous array (Children: array of TControl) and flag -O-, the compiler adds a superfluous and wrong line:
mod.rtti.DynArray("TControl.Childrena",{eltype: $r});
Steps to reproduce:
Compile example with -O-:
pas2js -Jc -O- arrayoftcontrol1.pas
Mantis conversion info:
- Mantis ID: 38681
- Version: 2.0.0