При компиляции у себя, работает все в норме. Загружаю, а там эта ошибка… Как понимаю, он а лямбду ругается. Там v3.2.0.1325
[0]Internal compiler error in module Compiler.Compile[019687.pas] :'System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00021] in <90910314e0f14f998fc0d35c0199e8a7>:0
at TreeConverter.LambdaExpressions.Closure.CapturedVariablesSubstitutor.SubstituteForLoopVariables () [0x00179] in <413a0309438d4d96ad21e3260ff28d14>:0
at TreeConverter.LambdaExpressions.Closure.CapturedVariablesSubstitutor.Substitute (PascalABCCompiler.SyntaxTree.statement_list statementList) [0x00048] in <413a0309438d4d96ad21e3260ff28d14>:0
at TreeConverter.LambdaExpressions.Closure.CapturedVariablesSubstitutionsManager.Substitute (PascalABCCompiler.TreeConverter.syntax_tree_visitor _visitor, PascalABCCompiler.SyntaxTree.declarations decls, PascalABCCompiler.SyntaxTree.statement_list _statementList) [0x00048] in <413a0309438d4d96ad21e3260ff28d14>:0
at PascalABCCompiler.TreeConverter.syntax_tree_visitor.visit (PascalABCCompiler.SyntaxTree.block _block) [0x00437] in <413a0309438d4d96ad21e3260ff28d14>:0
at PascalABCCompiler.SyntaxTree.block.visit (PascalABCCompiler.SyntaxTree.IVisitor visitor) [0x00000] in <d8edc471811b484487c5180ed5c099ba>:0
at PascalABCCompiler.TreeConverter.syntax_tree_visitor.hard_node_test_and_visit (PascalABCCompiler.SyntaxTree.syntax_tree_node tn) [0x00023] in <413a0309438d4d96ad21e3260ff28d14>:0
at PascalABCCompiler.TreeConverter.syntax_tree_visitor.visit (PascalABCCompiler.SyntaxTree.program_module _program_module) [0x000cc] in <413a0309438d4d96ad21e3260ff28d14>:0
at PascalABCCompiler.SyntaxTree.program_module.visit (PascalABCCompiler.SyntaxTree.IVisitor visitor) [0x00000] in <d8edc471811b484487c5180ed5c099ba>:0
at PascalABCCompiler.TreeConverter.SyntaxTreeToSemanticTreeConverter.CompileInterface (PascalABCCompiler.SyntaxTree.compilation_unit SyntaxUnit, PascalABCCompiler.TreeRealization.unit_node_list UsedUnits, System.Collections.Generic.List`1[T] ErrorsList, System.Collections.Generic.List`1[T] WarningsList, PascalABCCompiler.Errors.SyntaxError parser_error, System.Collections.Hashtable bad_nodes, PascalABCCompiler.TreeRealization.using_namespace_list namespaces, System.Collections.Generic.Dictionary`2[TKey,TValue] docs, System.Boolean debug, System.Boolean debugging) [0x00120] in <413a0309438d4d96ad21e3260ff28d14>:0
at PascalABCCompiler.Compiler.CompileUnit (PascalABCCompiler.TreeRealization.unit_node_list Units, PascalABCCompiler.SyntaxTree.unit_or_namespace SyntaxUsesUnit) [0x0071f] in <6867db1680754045981a5e167df065a5>:0
at PascalABCCompiler.Compiler.Compile () [0x000b9] in <6867db1680754045981a5e167df065a5>:0 '