mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 03:09:11 +02:00
* fix for Mantis #36975: arraydefs are not allowed for generic types (this is only used for type declarations; for specializing constant strings which are char arrays are still allowed)
+ added test git-svn-id: trunk@45089 -
This commit is contained in:
parent
7757306c78
commit
a467332187
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -16380,6 +16380,7 @@ tests/webtbf/tw36631b.pp svneol=native#text/pascal
|
|||||||
tests/webtbf/tw36652.pp svneol=native#text/pascal
|
tests/webtbf/tw36652.pp svneol=native#text/pascal
|
||||||
tests/webtbf/tw36720.pp svneol=native#text/pascal
|
tests/webtbf/tw36720.pp svneol=native#text/pascal
|
||||||
tests/webtbf/tw3680.pp svneol=native#text/plain
|
tests/webtbf/tw3680.pp svneol=native#text/plain
|
||||||
|
tests/webtbf/tw36975.pp svneol=native#text/pascal
|
||||||
tests/webtbf/tw3716.pp svneol=native#text/plain
|
tests/webtbf/tw3716.pp svneol=native#text/plain
|
||||||
tests/webtbf/tw3738.pp svneol=native#text/plain
|
tests/webtbf/tw3738.pp svneol=native#text/plain
|
||||||
tests/webtbf/tw3740.pp svneol=native#text/plain
|
tests/webtbf/tw3740.pp svneol=native#text/plain
|
||||||
|
@ -78,7 +78,7 @@ uses
|
|||||||
type
|
type
|
||||||
tdeftypeset = set of tdeftyp;
|
tdeftypeset = set of tdeftyp;
|
||||||
const
|
const
|
||||||
tgeneric_param_const_types : tdeftypeset = [orddef,stringdef,arraydef,floatdef,setdef,pointerdef,enumdef];
|
tgeneric_param_const_types : tdeftypeset = [orddef,stringdef,floatdef,setdef,pointerdef,enumdef];
|
||||||
tgeneric_param_nodes : tnodetypeset = [typen,ordconstn,stringconstn,realconstn,setconstn,niln];
|
tgeneric_param_nodes : tnodetypeset = [typen,ordconstn,stringconstn,realconstn,setconstn,niln];
|
||||||
|
|
||||||
function get_generic_param_def(sym:tsym):tdef;
|
function get_generic_param_def(sym:tsym):tdef;
|
||||||
|
10
tests/webtbf/tw36975.pp
Normal file
10
tests/webtbf/tw36975.pp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ %FAIL }
|
||||||
|
program tw36975;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
type
|
||||||
|
generic TTest <T,const N:Tintegerarray> = class
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user