The variant part of the record is always public lazarus / 64-FPC development ---------------------------------------------------------------------- ASerge · 2024-06-15 14:45 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$MODE OBJFPC}{$MODESWITCH ADVANCEDRECORDS} type  TRec = record  strict private    case Selector: Byte of      1: (PartInt: Integer);      2: (PartBool: Boolean);  end; var  R: TRec;begin  //R.Selector := 1; // project1.lpr(15,5) Error: identifier idents no member "Selector"  R.PartInt := 55; // No errorend.Please test this in the latest version of Delphi, is it the same in it? ---------------------------------------------------------------------- Thaddy · 2024-06-16 06:54 Delphi 11 errors as it should. ---------------------------------------------------------------------- ASerge · 2024-06-16 12:14 Quote from: Thaddy on June 16, 2024, 08:54:47 amDelphi 11 errors as it should. Thanks. https://gitlab.com/freepascal.org/fpc/source/-/issues/40824