mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 20:32:02 +02:00
Fix the test. It's mode Delphi, but does not compile in Delphi, because "TSomeRecord" and "TSomeRecord<T>" are different identifiers.
git-svn-id: branches/svenbarth/generics@19720 -
This commit is contained in:
parent
6a83ebc4a5
commit
d94a55604e
@ -5,10 +5,10 @@ program tw18567;
|
|||||||
type
|
type
|
||||||
TSomeRecord <TData> = record
|
TSomeRecord <TData> = record
|
||||||
data: TData;
|
data: TData;
|
||||||
class operator Explicit(a: TData) : TSomeRecord;
|
class operator Explicit(a: TData) : TSomeRecord <TData>;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class operator TSomeRecord <TData>.Explicit (a: TData): TSomeRecord;
|
class operator TSomeRecord <TData>.Explicit (a: TData): TSomeRecord <TData>;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user