mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 11:06:19 +02:00
* new bug
This commit is contained in:
parent
00c14e1083
commit
95721dca7e
23
tests/webtbf/tw3450.pp
Normal file
23
tests/webtbf/tw3450.pp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ %fail }
|
||||||
|
|
||||||
|
{ Source provided for Free Pascal Bug Report 3450 }
|
||||||
|
{ Submitted by "Vincent Snijders" on 2004-12-11 }
|
||||||
|
{ e-mail: vsnijders@quicknet.nl }
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
uses
|
||||||
|
uw3450;
|
||||||
|
|
||||||
|
var
|
||||||
|
A: TA;
|
||||||
|
|
||||||
|
begin
|
||||||
|
A := TA.Create;
|
||||||
|
// no error here
|
||||||
|
with A do
|
||||||
|
I := 9;
|
||||||
|
// this fails, correctly
|
||||||
|
A.I := 9;
|
||||||
|
end.
|
||||||
|
|
18
tests/webtbf/uw3450.pp
Normal file
18
tests/webtbf/uw3450.pp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
unit uw3450;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
type
|
||||||
|
TA=class
|
||||||
|
private
|
||||||
|
FI: Integer;
|
||||||
|
protected
|
||||||
|
property I: Integer read FI write FI;
|
||||||
|
end;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user