Feature Request: Show generic class parameters for Errors with generics lazarus / 64-FPC development ---------------------------------------------------------------------- soerensen3 · 2017-11-05 22:49 I'm using generics a lot and one problem I am always facing is one cannot tell which specialization caused an error. I better explain it with some example code: 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 type  generic gTestGeneric < T > = class ( TObject )    SomeField: T;    procedure CreateField;  end; TTestObj1 = class( TObject )  constructor Create( abc: String );end; TTestObj2 = class( TObject )  constructor Craete( abc: String ); // Some typoend; TTestGeneric1 = specialize gTestGeneric ;TTestGeneric2 = specialize gTestGeneric ; implementation procedure gTestGeneric.CreateField;begin  SomeField:= T.Create( 'abc' ); // Error here without telling which specialization caused the problem (In this case TTestObj2)end;... This is only an example to show that sometimes errors are only caused for some specialization and there is no way to tell from the error message which specialization is causing it. Would it be very complicated to implement in the compiler? What do you think?