-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringsdevexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Starting with the following code:
abstract class C {
List<String> get myList;
String get _first => myList.first;
test() => _first.isNotEmpty;
}Active the "inline method" refactoring on the method _first.
Expected result:
abstract class C {
List<String> get myList;
test() => myList.first.isNotEmpty;
}Observed result:
abstract class C {
List<String> get myList;
test() => _first.myList.first; // Undefined name '_first'
}FMorschel and tenhobi
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondevexp-refactoringIssues with analysis server refactoringsIssues with analysis server refactoringsdevexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)