mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
* fixed
This commit is contained in:
parent
d2c8a99440
commit
ddb2628712
28
tests/webtbs/tw3506.pp
Normal file
28
tests/webtbs/tw3506.pp
Normal file
@ -0,0 +1,28 @@
|
||||
{ Source provided for Free Pascal Bug Report 3506 }
|
||||
{ Submitted by "Frank Kintrup" on 2005-01-04 }
|
||||
{ e-mail: frank.kintrup@gmx.de }
|
||||
{$MODE Delphi}
|
||||
|
||||
type
|
||||
TEnumType = (enum0, enum1, enum2);
|
||||
|
||||
type
|
||||
TTestClass = class (TObject)
|
||||
private
|
||||
function GetPropValue(
|
||||
nIndex : TEnumType) : Integer;
|
||||
|
||||
public
|
||||
property Prop0 : Integer index enum0
|
||||
read GetPropValue;
|
||||
end;
|
||||
|
||||
function TTestClass.GetPropValue(
|
||||
nIndex : TEnumType) : Integer;
|
||||
begin
|
||||
Result := Integer(nIndex);
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user