* test for copying of typenode

git-svn-id: trunk@5081 -
This commit is contained in:
peter 2006-10-29 23:36:02 +00:00
parent dc29821e8c
commit e70355cb57
2 changed files with 15 additions and 0 deletions

1
.gitattributes vendored
View File

@ -7570,6 +7570,7 @@ tests/webtbs/tw7527.pp svneol=native#text/plain
tests/webtbs/tw7567.pp svneol=native#text/plain
tests/webtbs/tw7568.pp svneol=native#text/plain
tests/webtbs/tw7637.pp svneol=native#text/plain
tests/webtbs/tw7679.pp svneol=native#text/plain
tests/webtbs/ub1873.pp svneol=native#text/plain
tests/webtbs/ub1883.pp svneol=native#text/plain
tests/webtbs/uw0555.pp svneol=native#text/plain

14
tests/webtbs/tw7679.pp Normal file
View File

@ -0,0 +1,14 @@
{$mode objfpc}
{$h+}
uses
TypInfo;
type
Enum = (a, b, c);
var
S : string;
begin
S := 'Text';
S := S + 'xyz' + GetEnumName(TypeInfo(Enum), 1); // This line generate error
S := 'xyz' + GetEnumName(TypeInfo(Enum), 1); // This line is OK!
end.