Re: [fpc-devel] Explicitly named return values and implicit aliases Result

2020-12-15 Thread Sven Barth via fpc-devel
Am 15.12.2020 um 20:00 schrieb bla...@blaise.ru: Consider this test case: ---8<--- {$mode ObjFPC} // EXPECTED: 'Error: Identifier not found "result"' // ACTUAL BUG #1: gets compiled operator - (const L, R: Char) returned: Char; begin result := 'Z' end; // EXPECTED: gets compiled //

[fpc-devel] Explicitly named return values and implicit aliases Result

2020-12-15 Thread Blaise--- via fpc-devel
Consider this test case: ---8<--- {$mode ObjFPC} // EXPECTED: 'Error: Identifier not found "result"' // ACTUAL BUG #1: gets compiled operator - (const L, R: Char) returned: Char; begin result := 'Z' end; // EXPECTED: gets compiled // ACTUAL BUG #2: 'Error: Duplicate identifier "r