mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:06:08 +02:00
* test for copying of typenode
git-svn-id: trunk@5081 -
This commit is contained in:
parent
dc29821e8c
commit
e70355cb57
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -7570,6 +7570,7 @@ tests/webtbs/tw7527.pp svneol=native#text/plain
|
|||||||
tests/webtbs/tw7567.pp svneol=native#text/plain
|
tests/webtbs/tw7567.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw7568.pp svneol=native#text/plain
|
tests/webtbs/tw7568.pp svneol=native#text/plain
|
||||||
tests/webtbs/tw7637.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/ub1873.pp svneol=native#text/plain
|
||||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||||
|
14
tests/webtbs/tw7679.pp
Normal file
14
tests/webtbs/tw7679.pp
Normal 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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user