diff options
Diffstat (limited to 'tests/test/tgenconst30.pp')
-rw-r--r-- | tests/test/tgenconst30.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test/tgenconst30.pp b/tests/test/tgenconst30.pp new file mode 100644 index 0000000000..07f3274dad --- /dev/null +++ b/tests/test/tgenconst30.pp @@ -0,0 +1,14 @@ +{ %FAIL } +program tgenconst30; + +{$mode objfpc} + +type + TRange = 3..4; + + generic TTest<const U: TRange> = record end; + +var + t: specialize TTest<2>; +begin +end. |