diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-11-14 22:24:55 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2009-11-14 22:24:55 +0000 |
commit | 927361fcf0e2519b83f66b6dedeca61096c3d1d7 (patch) | |
tree | ad1c75b3f25bbf60197e11ffc4e3cb2e8bb5bef1 /tests | |
parent | d82ee8020acedb51a42c6bdaee12c6bbecb0c0e4 (diff) | |
download | fpc-927361fcf0e2519b83f66b6dedeca61096c3d1d7.tar.gz |
* several fixes which improve the behaviour of nested generics, resolves #15077
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14176 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test/tgeneric18.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test/tgeneric18.pp b/tests/test/tgeneric18.pp new file mode 100644 index 0000000000..cda5aaff13 --- /dev/null +++ b/tests/test/tgeneric18.pp @@ -0,0 +1,23 @@ +program tgeneric18; + +{$mode objfpc}{$H+} + +type + + { TFirstGeneric } + + generic TFirstGeneric<T> = class(TObject) + end; + + { TSecondGeneric } + + generic TSecondGeneric<T> = class(TObject) + type public + TFirstGenericType = specialize TFirstGeneric<T>; + end; + +var + Second: specialize TSecondGeneric<string>; +begin +end. + |