1 2 3 4 5 6 7 8 9 10 11 12 13
{ %norun } {$mode delphi} type TObj = class const Val = 1; V1: Integer = Val; V2: Integer = TObj.Val; end; begin end.