mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:09:09 +02:00
Extend the test with a usage of "TTestInteger" and correct the comments a bit.
git-svn-id: branches/svenbarth/generics@19433 -
This commit is contained in:
parent
feeff56099
commit
7c3a95d63f
@ -14,7 +14,7 @@ type
|
||||
|
||||
end deprecated 'Message A' platform;
|
||||
|
||||
// this will print that TTest<T> is deprecated and platform dependant
|
||||
// these will both print that TTest<T> is deprecated and platform
|
||||
TTestInteger = TTest<Integer> deprecated 'Message B' experimental;
|
||||
TTestString = TTest<String>;
|
||||
|
||||
@ -24,6 +24,8 @@ var
|
||||
// this will print nothing
|
||||
t2: TTestString;
|
||||
begin
|
||||
// this will print that TTest<T> is deprecated and platform dependant
|
||||
// this will print that TTest<T> is deprecated and platform
|
||||
t2 := TTest<String>.Create;
|
||||
// this will print that TTestInteger is deprecated and experimental
|
||||
t := TTestInteger.Create;
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user