Re: [fpc-pascal] overload question (variant vs enum subrange)

2014-02-02 Thread Martin Frb
Anybody? Is this designed? Or is this a bug? Shall I put it on Mantis? On 26/01/2014 19:48, Martin Frb wrote: TFoo1 is a sub range of FFoo And it seems to match both TFoo and variant. project1.lpr(24,3) Error: Can't determine which overloaded function to call project1.lpr(15,11) Hint: Found

[fpc-pascal] overload question (variant vs enum subrange)

2014-01-26 Thread Martin Frb
TFoo1 is a sub range of FFoo And it seems to match both TFoo and variant. project1.lpr(24,3) Error: Can't determine which overloaded function to call project1.lpr(15,11) Hint: Found declaration: Bar(TFoo); project1.lpr(11,11) Hint: Found declaration: Bar(Variant); No other type seems to be