pascalabcnet/TestSuite/with2.pas

17 lines
472 B
ObjectPascal
Raw Permalink Normal View History

2018-09-06 21:49:18 +03:00
begin
with System do
begin
assert(Environment.CurrentDirectory = System.Environment.CurrentDirectory);
end;
with System.Environment do
begin
assert(CurrentDirectory = System.Environment.CurrentDirectory);
end;
2019-05-18 00:40:21 +03:00
with System.Runtime.InteropServices, System.Runtime.InteropServices.Expando do
2018-09-06 21:49:18 +03:00
begin
var hnd: GCHandle;
var hnd2: System.Runtime.InteropServices.GCHandle;
2019-05-18 00:40:21 +03:00
var o: IExpando;
2018-09-06 21:49:18 +03:00
assert(hnd.GetType = hnd2.GetType);
end;
end.