anonymous functions: wrong hint local type not used

Summary

Compiler gives wrong hints when using anonymous function:

AnoFunc1.pas(17,8) Hint: Local type "$funcrefintf_1_1_15_5" is not used

AnoFunc1.pas(12,11) Hint: Local type "$CapturerClass_1_1_12_11" is not used

Example Project

AnoFunc1.pas

Edited by Mattias Gaertner