Jump to content

Rob Truby

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by Rob Truby


  1. Somewhat related, but for a different refactoring.

     

    Using the inline var definition breaks the extract method refactoring. 

     

    procedure Test;
    var
      Value: Integer;
    begin
      Value := 0;

      for var i := 0 to 10 do
        Inc(Value);
    end;

     

    For the above you can't extract Value := 0; as a method. If i is defined in the var section you can. 

     

    procedure Test;
    var
      i, Value: Integer;
    begin
      Value := 0;

      for i := 0 to 10 do
        Inc(Value);
    end;

     

    I have submitted a report for this RSP-33176

     

    • Like 1

  2. I have similar behavior with Shift Ctrl T (add to-do item) if the project is set to auto load (autosave Project Desktop) and CN Pack (and some other add-ins) is installed.

    The to-do dialog is displayed but the to do item is not added to the editor unless I first right click to display the context menu. I'm not sure it's in any way related. 

    • Like 1
×