-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-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:
class C {
final List<String> myList;
C(this.myList);
String get _first => myList.first;
test() => 'The first entry is $_first';
}
main() {
print(C(['x']).test()); // prints `The first entry is x`
}Active the "inline method" refactoring on the method _first.
Expected result:
class C {
final List<String> myList;
C(this.myList);
test() => 'The first entry is ${myList.first}';
}
main() {
print(C(['x']).test()); // prints `The first entry is x`
}Observed result:
class C {
final List<String> myList;
C(this.myList);
test() => 'The first entry is $myList.first';
}
main() {
print(C(['x']).test()); // prints `The first entry is [x].first`
}FMorschel
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-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)